API version:

Supported Formats

json

Errors

Code Description
400 invalid_scope
400 unauthorized_client
422 Bad input parameter. Error message should indicate which one and why.
401 Can't find document.
401 Can't find user.
401 No ACLs tying user to document.
401 Cannot void a document that is not pending or draft.

Examples

POST /public/{version}/documents/e1858e4b-a378-40b3-b505-ad7ce18aa11f/void
{
  "document": {}
}
200
{
  "document": {
    "status": "Voided draft document."
  }
}