Resource update
Resource update.
POST/api/v1/analytics/groups/{analytic_group}/files/{analytic_file}Headers | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
analytic_groupoptional | int | Unique identifier of the resource group | |||||||
analytic_fileoptional | int | Unique identifier of the resource | |||||||
namerequired | string | Resource name | |||||||
imagerequired | binary | Resource image. Required when updating a resource of type «face_resource» | |||||||
bodyrequired | string | License plate number. Required when updating a resource of type «plate_resource» | |||||||
typerequired | string | Resource group type. When updating a resource, the resource type cannot be changed |
Response | |||||||||
201 | Returns the resource 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
|