SightRadardocs
API referenceCollections

Undo a soft photo delete

Un-deletes a soft-deleted photo's faces so they are searchable again. (POST /v1/collections/{id}/photos/{photoId}/restore)

POST/v1/collections/{id}/photos/{photoId}/restore
Auth
Bearer API key
Billing
free (0 credits).

Un-deletes a soft-deleted photo's faces so they are searchable again. Only works while the vectors still exist — i.e. for a soft delete inside its grace window. An immediate delete physically removed the vectors and cannot be undone; re-index the photo instead. Free and idempotent.

Example request

curl -X POST "https://api.sightradar.com/v1/collections/$ID/photos/$PHOTOID/restore" \
  -H "Authorization: Bearer $SR_API_KEY"

Parameters

NameInTypeDescription
id requiredpathstringCollection id.
photoId requiredpathstringThe photoId supplied at index time.

Response body

FieldTypeDescription
restoredboolean
collection_idstring
photo_idstring

Status codes

StatusMeaning
200Faceprints restored.
401Missing or invalid API key.
403Account is read-only.
404Resource not found.
502Deletion service unavailable.
Last updated

On this page