Delete a Draft Picture or Document
DELETE/drafts/:draftId/images/:assetId
Deletes one picture or document, and gives its storage back to the draft. A file is not edited in place: to change one, delete it and upload it again. Needs the asset:delete scope. Send Authorization: Bearer <token>: the login token of a person who can work on the draft, or a draft key (wrd_...) with the scope this route needs. A draft key works only for the draft in the address.
Request
Responses
- 200
- 401
- 403
- 404
The file was deleted.
Not authenticated
The token is not allowed to do this. A draft key needs the asset:delete scope; a person needs the same permission on the draft.
There is no such file in this draft