parent_in_trash
The object belongs to another object that is in the Trash. Restore that object first.
HTTP status: 409. Error type: invalid_request_error.
The object belongs to another object that is in the Trash. Restore that object first.
Example
{
"error": {
"type": "invalid_request_error",
"code": "parent_in_trash",
"message": "The connection conn_8mKq2WnZpL4vTdYb6A3xRe is in the Trash. Restore the connection first.",
"param": "id",
"doc_url": "https://docs.afffast.com/errors/parent-in-trash",
"request_id": "req_3kQ9x7WmZpL2vNd8TfYb4A"
}
}Causes
POST /v1/links/{id}/restorenames a link of a connection that is in the Trash.POST /v1/postback_sources/{id}/restorenames a postback source of a connection that is in the Trash.- The object went to the Trash together with another object. The other object holds it.
How to fix
- Restore the object that the message names. The object comes back with the objects that went to the Trash with it.