DELETE
/v1/mappings/drafts/{id}Deletes the draft and its sample rows. A finalized draft is the record of what a named person froze, so it stays and the request is refused. The sample files stay with your files, where other rows may hold the same file.
Path parameters
- idstring (uuid)Required
The draft's id, as
POST /v1/mappings/draftsanswered it.
Status codes
| Status | Meaning |
|---|---|
204 |
The draft was deleted. |
401 |
No usable credential was sent (invalid_credentials). |
404 |
This company has no such draft (unknown_mapping_draft). |
409 |
The draft is finalized and stays (mapping_draft_finalized). |
DELETE
/v1/mappings/drafts/{id}Example
curl -X DELETE https://api.certinvo.com/v1/mappings/drafts/$DRAFT_ID \
-H "Authorization: Bearer $CERTINVO_API_KEY"const draftId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'
const response = await fetch(`https://api.certinvo.com/v1/mappings/drafts/${draftId}`, {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
draft_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
response = requests.delete(
f"https://api.certinvo.com/v1/mappings/drafts/{draft_id}",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)204
No response body.
Success response