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” } }
Parameter | Description | Data Type |
Old_Label | Currently assigned label (returned by /recognize API) | string |
New_Label | New 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.