Update

Activity update

Example request:

Parameter

Description

Examples

action

Defines the the API

action=update

Parameters described in overview

Company

Specify the company (data-set)

company=1

input

JSON array

company={"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://<SERVER>/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
    }
  ]
}