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