1. Home
  2. Docs
  3. Detection & Identification API document
  4. Sentry Face Recognition API
  5. Labelling API

Labelling API

This API is meant to change the system generated Label, usually to the name of the person. 

/label
Request Type: POST
Endpoint URL: https://icof49shn9.execute-api.us-west-2.amazonaws.com/v1/label

Header:

 {
"content-type": "application/json", 
"x-api-key": "<API Key>", 
"cache-control": "no-cache"
}

Request Body:
{
"body": {
		"Site_Id": "string",
		"Camera_Name": "string",
		"Old_Label": "string",
		“New_Label”: “string”
  	}
}

ParameterDescriptionData Type
Old_LabelCurrently assigned label (returned by /recognize API)string
New_LabelNew label you want to assign.string

Response:

Here is an example of response.

200 Response:
{
 	"status_code": 200,
 	"message": "Successfully updated the Label"
}

On failure, the message will contain the corresponding error description.

Was this article helpful to you? Yes No

How can we help?