Page Properties | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
|
If you want to delete a document you can do this by sending , send a DELETE request to the document URI. When the document is deleted, all associated resources (extractions, layout) will be are deleted as well.
Code Block | ||
---|---|---|
| ||
//delete documents
DELETE /documents/{id} |
Request
...
Code Block | ||
---|---|---|
| ||
//delete request
curl -H 'Authorization: BEARER <token>'
-X DELETE -i https://pay-api.gini.net/documents/c292af40-d06a-11e2-9a2f-000000000000 |
Response
Headers
Status Code | Description |
---|---|
204 (No Content) | Operation is successful. |
Errors
Status Code | Description |
---|---|
404 (Not Found) | Returned when no document can be found under the specific URI. |