POST /add_face_image
Associates one uploaded image with one face identity.
Endpoint
POST https://api-eu.valossa.com/training/1.0/add_face_image
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | Faces-enabled API key |
face.id | string | Yes | Face identity UUID |
image.url | string | Yes | Uploaded image URL (valossaupload://...) |
Response
Successful response (200) returns:
| Field | Type | Description |
|---|---|---|
image_id | string | UUID of accepted training image |
Example
curl -H "Content-Type: application/json" \
-X POST \
-d '{"api_key":"YOUR_API_KEY","face":{"id":"bb254a82-08d6-4498-9ddb-3de4c88f1f66"},"image":{"url":"valossaupload://ff357efe-1086-427d-b90c-1d1887fb1017"}}' \
https://api-eu.valossa.com/training/1.0/add_face_image
Notes
- Use one clearly visible face per image.