Delete

Delete a document

Delete

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaattachments.json
GeneralYesParameters described in overviewAuthorization: Bearer <access_token> header — see Synergist API AuthenticationStructure of an API call
ActionYesThe action to performaction=delete
InputYesJSON stringSee below
JSON InputMandatoryDescriptionExamples
IdentifierYesData identifying attachment to delete"attachmentID": 6958

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/attachments.json?company=1&&version=6&action=delete&input={
  "data": [
    {
      "attachmentID": 6958
    }
  ]
}

Example request (legacy username/password):

http://<SERVER>/jsonapi/attachments.json?company=1&&version=6&action=delete&input={
  "data": [
    {
      "attachmentID": 6958
    }
  ]
}&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "data processed successfully.",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "attachmentID": 5464,
      "attachmentUuid": "9B7100C5B37B4F49B6B04F30833BAFC2"
    }
  ]
}