add facility_type: 添加 設施類型 資料 07-12 15:26
add facility_type: 添加 設施類型 資料
更新時間:2022-07-12 15:26:49
HTTP Request
POST: manager/facility_type/add
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
data | object | required | |
name | string | required | facility_types.name |
title_enHK | string | required | facility_types.title_enHK |
title_zhHK | string | required | facility_types.title_zhHK |
title_zhCN | string | required | facility_types.title_zhCN |
extra_fields | object | optional | facility_types.extra_fields |
Response Structure
Parameter | Type | Status | Description |
---|---|---|---|
status | int | required | 0: 成功, 非0: 失敗 |
data | object | optional | |
id | int | optional | facility_types.id |
Example usage
Example #1
POST: manager/estate/add
Body
{
"data": {
"name": "type_5",
"title_enHK": "type_5",
"title_zhHK": "type_5",
"title_zhCN": "type_5"
}
}
Response(200,status=0)
{
"status": 0,
"data": {
"id": 5
}
}