Update

Rename a document

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaattachments.json
GeneralYesParameters described in overviewuser=user&password=user&version=3.9Overview
ActionYesThe action to performaction=update
InputYesJSON stringSee below
JSON InputMandatoryDescriptionExamples
IdentifierYesData identifying attachment to update"attachmentID": 6958
Update dataYesData to update on attachment"attachmentDescription": "Meeting at Boundry Mill"

Example request:

http://<SERVER>/jsonapi/attachments.json?company=1&user=user&password=user&version=3.9&action=update&input={
  "data": [
    {
      "attachmentID": 6958,
      "attachmentDescription": "Meeting at Boundry Mill"
    }
  ]
}

Example response:

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

Note:

To discover which fields are editable make a call to the "Attachment details" endpoint and specify '&style=modelstructure' see Meta-data