Delete one line of a document
DELETE/api/{parent}/{id}/items/{itemId}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| parent | String | Document type owning the lines |
| id | Number | Parent document unique ID |
| itemId | Number | Line unique ID. It must belong to that document. |
curl -X DELETE "https://yoursite.com/api/1/123/items/123" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
HTTP/1.1 200 OK
{
"status": 200,
"messages": {"success": "The record has been deleted."}
}