PUT /ws/rest/service/v1/space
Purpose:
To update 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
Update 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 update space record.
- space_type (Required): specify the Space BP name, where record will be Updated.
- space_sp_space_name (Required) : "space_sp_space_name" must be provided in "data" to identify space record to be updated.
Output:
JSON object containing 'status', 'data', 'message'
Update 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.