Skip to main content
Skip table of contents

Updating a private folder

PATCH/api/v1/billing/tree/folders/private

Headers

Accept

application/json

Body

json

JSON
{
    "id": null,
    "external_id": "external_id_of_tree_element",
    "key": "random_key",
    "new_key": "new_random_key"
}

idrequired

int

id of the tree element in which the folder should be created

external_idrequired

string|int

key for the tree element in which the folder should be created

keyrequired

string

key for the folder, which can be sent instead of id when creating a camera, if you need to add a camera to the folder

new_keyrequired

string

new key for folder

Response

201

Successful response

JSON
{
    "id": 15,
    "key": "random_key"
}
422

Returns a JSON object with an error. Validation

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The cause of the error will be described here"
        ]
    }
}

Example

JSON
curl -k --request POST \
	--url 'https://your-domain/api/v1/billing/tree/folders/private' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "id": 0,
    "external_id": "string|int",
    "key": "string",
    "new_key": "string"
}'

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.