Update

Activity update

Example request:

ParameterDescriptionExamples
actionDefines the the APIaction=update
Parameters described in overview
CompanySpecify the company (data-set)company=1
inputJSON arraycompany={"data": ...
activityID"activityID":6958
activityRecordVersionNumber"activityRecordVersionNumber":1
All other fields. Only modified fields need to be passed."activityDetails":"Meeting at Boundry Mill"

activityRecordVersionNumber: This number is returned by the API when first creating/loading/amending a record. It must be passed back when doing an update. If the record has been updated by another user in the meantime, the update will fail.

http:///jsonapi/activities.json?company=1&user=user&password=user&version=3.1&action=update&input={
"data": [
{
"activityDetails": "Meeting at Boundry Mill",
"activityID": 6958,
"activityRecordVersionNumber": 1
}
]
}

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "data processed successfully.",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "activityID": 6740,
      "activityuuid": "6372D5630F00DD43AB3C7DFDE1A114D4",
      "activityTimeStampModified": 1458754056,
      "activityRecordVersionNumber": 6
    }
  ]
}