Deprecated, update post: 更新 貼文 資料 05-19 16:44
Deprecated, update post: 更新 貼文 資料
更新時間:2022-05-19 16:44:39
HTTP Request
POST: manager/post/update/:id
URL Parameters
Parameter | Type | Status | Description |
---|---|---|---|
id | int | required | posts.id |
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
data | object | optional | |
name | string | optional | posts.name |
Response Structure
Parameter | Type | Status | Description |
---|---|---|---|
status | int | required | 0: 成功, 非0: 失敗 |
data | object | optional |
Example usage
Example #1
POST: manager/post/update/1
Body
{
"data": {
"name": "New Tech"
}
}
Response(200,status=0)
{
"status": 0
}
Example #2
POST: manager/posts/update/99999
Response(200,status=404 Not Found.)
{
"status": 404,
"error": "Not found."
}
Example #3
POST: manager/posts/update/invaildparams
Response(200,status=101)
{
"status": 101,
"error": "Invaild params."
}