POST /ws/rest/service/v1/space
Purpose:
To create Space record. This works only at project or shell .
Input:
All parameters should be URL encoded.
Both input & output in JSON format in the body
Create Space Record input JSON
{
"options" :
{
"project_number":"Shell/Project number",
"space_type" : "Space BP name"
},
"data": [
{
"uuu_rsv_overbook":"No overbooking",
"uBuildingName":"Building_01",
"space_sp_space_name":"Space_003",
"uSiteName":"Site_01",
"uuu_sp_level_picker":"floor_01",
"uplRoomTB250":"sp_901",
"uuu_rsv_reservable":"Yes"
},
{
"uuu_rsv_overbook":"No overbooking",
"uBuildingName":"Building_01",
"space_sp_space_name":"Space_004",
"uSiteName":"Site_01",
"uuu_sp_level_picker":"floor_01",
"uplRoomTB250":"sp_901",
"uuu_rsv_reservable":"Yes"
}
]
}
Input JSON field description:
- project_number (Required): specify the project/shell number to create space record.
- space_type (Required): specify the Space BP name, for which record will be created.
- space_sp_space_name (Required) : Unique "space_sp_space_name" must be provided in "data" for each space record.
Output:
JSON object containing 'status', 'data', 'message'
Create Space Record output JSON
{
"data": [
{
"uuu_rsv_overbook":"No overbooking",
"uBuildingName":"Building_01",
"space_sp_space_name":"Space_003",
"uSiteName":"Site_01",
"uuu_sp_level_picker":"floor_01",
"uplRoomTB250":"sp_901",
"uuu_rsv_reservable":"Yes"
},
{
"uuu_rsv_overbook":"No overbooking",
"uBuildingName":"Building_01",
"space_sp_space_name":"Space_004",
"uSiteName":"Site_01",
"uuu_sp_level_picker":"floor_01",
"uplRoomTB250":"sp_901",
"uuu_rsv_reservable":"Yes"
}
],
"message": [
{
"space_sp_space_name":"Space_003",
"message":"success"
},
{
"space_sp_space_name":"Space_004",
"message":"success"
}
],
"status": 200
}
Status codes are:
1> 200 , for success.
2> 3000, for partial success.