Create a group. VMS Admin API
Headers | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
namerequired | string | Group name | |||||||
parent_idrequired | int | ID of the parent group to which the created group will belong | |||||||
is_houserequired | bool | Is it a building |
Response | |||||||||
201 | Successful response | ||||||||
JSON
| |||||||||
401 | Authorization token is not provided or is invalid. Obtaining a token | ||||||||
422 | Returns a JSON object with an error. Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|