Documents

Delete a document

Deletes a document and its bytes. This operation takes no base_revision: a Document holds no prose for two people to write over. AdCrunch deletes the record first. Therefore a failure in the middle leaves bytes with no record, and never a record with no bytes.

delete/context/brands/{slug}/documents/{documentId}

Request

  • Base URL: https://api.adcrunch.dev
  • URL: https://api.adcrunch.dev/context/brands/{slug}/documents/{documentId}
  • Auth: HTTP bearer

Path parameters

documentIdstring required
slugstring required

Response

Deleted. If this Document was the Brand’s nominated logo, AdCrunch clears that nomination — in the application rather than in the database, because the row is soft-deleted and a delete action would never fire. Clearing it moves the revision of the Brand, so a base_revision you read before this call now answers 409.

Changes

No recorded changes to this operation across all 1 revision of this API.