保存抽奖配置基本信息
开发中
POST
https://saas-open.vhall.com/v3/vss/api/lottery/save-base-info
code | |
---|---|
516722 | 抽奖不存在 |
516724 | 抽奖/领奖页参数设置中不能包含emoji等特殊字符 |
600 | 活动ID不能为空,title 不能为空,img_path不能为空 |
516002 | 用户不存在 |
516728 | 调通用抽奖服务失败 |
[{
"is_system": 1,
"field": "姓名",
"field_key": "name",
"is_required": 1,
"placeholder": "请输入姓名",
"rank": 1
}, {
"is_system": 1,
"field": "手机号",
"field_key": "phone",
"is_required": 1,
"placeholder": "请输入手机号",
"rank": 2,
"is_check":1 #是否校验手机号,0不校验 1校验
}, {
"is_system": 1,
"field": "地址",
"field_key": "address",
"is_required": 0,
"placeholder": "请输入地址",
"rank": 3
}]
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://saas-open.vhall.com/v3/vss/api/lottery/save-base-info' \
--header 'token;' \
--header 'platform: 15' \
--form 'webinar_id="123"' \
--form 'title=""' \
--form 'description=""' \
--form 'img_path=""' \
--form 'app_key=""' \
--form 'sign_type=""' \
--form 'signed_at=""' \
--form 'sign=""'
响应示例响应示例
{
"code": 0,
"msg": "string",
"data": {}
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/x-www-form-urlencoded
token
string
TOKEN
platform
string
必需
示例值:
15
Body 参数multipart/form-data
lottery_id
string
可选
示例值:
123
webinar_id
string
活动id
示例值:
123
title
string
标题 <=10
description
string
说明 <=20
img_path
string
图片的url
img_order
string
可选
lottery_method
string
可选
示例值:
0
lottery_countdown
string
可选
display_of_results
string
可选
extension
string
可选
自定义扩展信息<200
app_key
string
必需
默认值:
{{app_key}}
sign_type
integer
必需
默认值:
{{sign_type}}
signed_at
integer
必需
默认值:
{{signed_at}}
sign
string
计算生成的签名值
默认值:
{{sign}}
返回响应
修改于 2025-05-28 05:26:11