Skip to Content
Docs

restore_conflict

The object cannot come back from the Trash now, because another object uses its name or code. Change or delete the other object, then restore again.

HTTP status: 409. Error type: invalid_request_error.

The object cannot come back from the Trash now, because another object uses its name or code. Change or delete the other object, then restore again.

Example

{
  "error": {
    "type": "invalid_request_error",
    "code": "restore_conflict",
    "message": "The short code of this link is in use now. Change the short code of the other link, then restore this link again.",
    "param": "id",
    "doc_url": "https://docs.afffast.com/errors/restore-conflict",
    "request_id": "req_3kQ9x7WmZpL2vNd8TfYb4A"
  }
}

Causes

  • POST /v1/links/{id}/restore names a link whose short code a new link has now.
  • POST /v1/sites/{id}/restore or POST /v1/tags/{id}/restore names an object whose name a new object has now.

How to fix

  • Change the name or the short code of the other object, or delete the other object. Then send the restore again.
  • A restore never changes the name or the code of the object in the Trash.

On this page