Create a resource group
Creating resource groups. Resource groups can have 2 types:
face_resource - Used for analytics cases with the «Face Recognition» type
plate_resource - Used for analytics cases with the «License Plate Recognition» type
POST/api/v1/analytics/groupsHeaders | |||||||||
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 resource name | |||||||
typerequired | string | Type of resource group, see Basic Configurations | |||||||
resourcesrequired | array | Array of resource IDs. IDs must be unique, and in the case of plate_resource, license plates should not be duplicated in the resources, see Creating a resource |
Response | |||||||||
201 | Returns the resource group object | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|