Delete a document
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | attachments.json | |
General | Yes | Parameters described in overview | user=user&password=user&version=3.9 | Overview |
Action | Yes | The action to perform | action=delete | |
Input | Yes | JSON string | See below |
JSON Input | Mandatory | Description | Examples |
---|---|---|---|
Identifier | Yes | Data identifying attachment to delete | "attachmentID": 6958 |
Example request:
http://<SERVER>/jsonapi/attachments.json?company=1&user=user&password=user&version=3.9&action=delete&input={
"data": [
{
"attachmentID": 6958
}
]
}
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"attachmentID": 5464,
"attachmentUuid": "9B7100C5B37B4F49B6B04F30833BAFC2"
}
]
}