update slideshow: 更新 slideshow 資料 07-12 15:26
update slideshow: 更新 slideshow 資料
更新時間:2022-07-12 15:26:49
HTTP Request
POST: manager/slideshow/update/:id
URL Parameters
Parameter | Type | Status | Description |
---|---|---|---|
id | int | required | slideshows.id |
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
data | object | optional | |
estate | int | optional | slideshows.estate_id |
cat | string | optional | slideshows.cat |
name | string | optional | slideshows.name |
image | int | optional | slideshows.image |
sort_weight | int | optional | slideshows.sort_weight |
Response Structure
Parameter | Type | Status | Description |
---|---|---|---|
status | int | required | 0: 成功, 非0: 失敗 |
data | object | optional |
Example usage
Example #1
POST: manager/slideshow/update/1
Body
{
"data": {
"name": "new_slide"
}
}
Response(200,status=0)
{
"status": 0
}
Example #2
POST: manager/slideshows/update/99999
Response(200,status=404 Not Found.)
{
"status": 404,
"error": "Not found."
}
Example #3
POST: manager/slideshows/update/invaildparams
Response(200,status=101)
{
"status": 101,
"error": "Invaild params."
}