SightRadardocs
API referenceCollections

Undo a soft collection delete

Restores a collection that is still inside its grace window (status=deletion_pending) back to active, cancelling the… (POST /v1/collections/{id}/restore)

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

Restores a collection that is still inside its grace window (status=deletion_pending) back to active, cancelling the scheduled purge. The collection keeps the same incarnation, and any batch work that was paused by the delete resumes. Free and idempotent.

Returns 409 once the purge has actually started (status=deleting) — vectors are being erased at that point, so a restore could not honestly return the collection intact. Also 409 for a compliance-class erasure, which is deliberately not restorable.

Example request

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

Parameters

NameInTypeDescription
id requiredpathstringCollection id.

Response body

FieldTypeDescription
statusstring
messagestring

Status codes

StatusMeaning
200Collection restored.
401Missing or invalid API key.
403Account is read-only.
404Resource not found.
409Not restorable — the purge has already started, or this was a compliance-class erasure.
Last updated

On this page