更新投票
PUT
/api/v1/miniapp/votes/{vote_id}请求参数
Path 参数
vote_id
string
必需
示例值:
1
Body 参数application/json
userName
string
Username
password
Password
Any of
userEmail
string <email>
Useremail
userGender
可选
Any of
枚举值:
123
默认值:
1
nickName
Nickname
Any of
userPhone
Userphone
Any of
userRoles
Userroles
Any of
status
可选
Any of
枚举值:
12
默认值:
1
示例
{
"isFull": false,
"title": "标题",
"description": "描述",
"startTime": "2024-12-12 23:59:59",
"endTime": "2024-12-22 23:59:59",
"statusType": "1",
"byVisibleIdList": [
1
],
"byOptionInfoList": [
{
"id": "1",
"content": "A. 测试2",
"statusType": "1"
},
{
"id": "2",
"content": "B. 测试333",
"statusType": "2"
},
{
"id": "-1",
"content": "C. 测试333",
"statusType": "2"
}
]
}
示例代码
返回响应
成功(200)
Validation Error(422)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
必需
msg
string
必需
data
object
必需
updated_id
integer
必需
示例
{
"code": "0000",
"msg": "Updated Successfully",
"data": {
"updated_id": 4
}
}
最后修改时间: 2 个月前