POST /ws/rest/service/v1/admin/shell
Input JSON:
{
"options" : {
"copy_from_shell_template" : "OFF-00",
"copy_modules" : "",
"default_currency" : ""
},
"data" :
[
{
"uBuildingNumber" : "BLD - 31",
"uBuildingName" : "BUILDING 31",
"uuu_location" : "/All Properties",
"uuu_administrator" : "Company Administrator"
},
{
"uBuildingNumber" : "BLD - 32",
"uBuildingName" : "BUILDING 32",
"uuu_location" : "/All Properties",
"uuu_administrator" : "Company Administrator"
}
]
}
Output JSON:
{
"data":
[
],
"message":
[
{
"uBuildingNumber":"BLD - 31",
"uuu_administrator":"Eadlin Jay",
"_record_status":"uBuildingName BUILDING 31 already exists under /All Properties. ",
"uuu_location":"/All Properties",
"uBuildingName":"BUILDING 31"
},
{
"uBuildingNumber":"BLD0032",
"uuu_administrator":"Eadlin Jay",
"_record_status":"SUCCESS",
"uuu_location":"/All Properties",
"uBuildingName":"BUILDING 32"
}
],
"status":3000
}
- If all the shells are created successfully, then the response status code will be 200.
- The copy_modules and default_currency are optional.
- The response will have the input data sent in plus the _record_status.
- The _record_status will indicate if the shell creation is a success or the respective error message.
Note: The shell number in the response might not be the same as the input if auto-numbering is set.