Cameras

Create a new camera

To add a new camera, use the following method:

POST /cameras/

The REQUEST BODY contains an application/json object with the following required parameters:

Name

Type

Description

group*

integer

Camera group ID.

name*

string

Camera name.

Constraints: Min 1┃Max 256 chars.

The list of all available parameters can be found at http://<findface-ip:port>/api-docs.

You can send the request with the following parameters, substituting your own values:

Request example

{
 "group": 1,
 "active": false,
 "name": "Camera_name",
 "comment": "AAAAAA",
 "url": "http://my_url"
}

CURL example

curl -X POST "http://<findface-ip:port>/cameras/" \
 -H "Authorization: Token <token>" \
 -H "Content-Type: application/json" \
 -d '{"group":1,"active":false,"name":"Camera_name","comment":"AAAAAA","url":"http://my_url"}'

Returns

  • Created: 201 – on success.