Restore a soft-deleted credential
POST/openapi/v1/credentials/:credentialId/restore
Clears the removed marker set by DELETE, putting the credential back in lists, search and compliance. Aspect rows are never dropped by a soft delete, so the record returns with its attachments, verification history and owners intact. Find restore candidates with GET /credentials?includeDeleted=true — each row carries a deleted flag. Idempotent: restoring a credential that is not deleted is a no-op. Returns 404 if no such credential exists.
Restoring is NOT the right repair for a worker whose credential was retired by a duplicate collapse — the retired record is the non-canonical copy, and reviving it re-creates the duplicate. Link the surviving record to the worker instead (POST /credentials/{id}/link).
Request
Responses
- 200
- 401
- 403
- 429
- 500
OK
Authentication required
Caller is not authorised
Rate limit exceeded — see Retry-After header
Internal server error