The method and parameters
|
POST /api/v1/billing/tree/folders/private |
Private folders can only be created for camera trees. They are needed to differentiate access to cameras within a single tree element.
Folders can only be created in the final (leaf) element of the tree. The key for a folder must be unique within a single final element of the tree.
{
"key": "random_key",
"external_id": "external_id_of_tree_element",
"id": null,
"is_editable": false,
"log_extra": {
"some": "information"
}
}
string key – a key to the folder, which can be sent instead of an ID when creating a camera if you need to add a camera to the folder.
string|int external_id required – a key for the tree element in which the folder should be created.
int id required – the ID of the tree element in which the folder should be created.
string|array log_extra – additional information received from an external system.
boolean is_editable – the parameter responsible for the ability to edit and delete a folder (the optional parameter. If not specified, then the default false is used).
|
201 |
|
Successful response JSON
|
|
422 |
|
Returns a JSON object with an error. For details, see General information > Validation. JSON
|