curl --request PATCH \
--url https://api.example.com/api/faces/{face_id} \
--header 'Content-Type: application/json' \
--data '
{
"person_id": "<string>"
}
'{
"id": "<string>",
"asset_id": "<string>",
"bounding_box": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"person_id": "<string>",
"timestamp_ms": 123,
"asset_urls": {}
}Assigns a face to a specific person, or detaches it (set person_id to null). This is the right tool for ‘this face is Alice’ or ‘this face isn’t Bob after all’.
Currently only the person_id field is mutable. To create a brand-new identity first, call create_person; to delete the face detection entirely, use delete_face.
curl --request PATCH \
--url https://api.example.com/api/faces/{face_id} \
--header 'Content-Type: application/json' \
--data '
{
"person_id": "<string>"
}
'{
"id": "<string>",
"asset_id": "<string>",
"bounding_box": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"person_id": "<string>",
"timestamp_ms": 123,
"asset_urls": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.gumnut.ai/llms.txt
Use this file to discover all available pages before exploring further.
Face ID (with face_ prefix) of the face detection to update.
Library the face belongs to. Optional if the user has a single library; required when they have multiple.
Target person ID (with person_ prefix) to assign this face to. Pass null to detach the face from its current person without deleting either. Get IDs from list_people; use create_person first if the target identity doesn't exist yet.
Successful Response
Represents a detected face in an asset with facial recognition data.
Unique face identifier with 'face_' prefix
ID of the asset containing this face
Face location as {x, y, w, h} coordinates in pixels
Show child attributes
When this face was detected and recorded
When this face record was last updated
ID of the person this face belongs to (if identified)
For video files, timestamp in milliseconds when face appears
Asset variants for this face: 'thumbnail' with face crop
Show child attributes