Update an activity record
| Parameter | Mandatory | Description | Examples | More Info | 
|---|---|---|---|---|
| API | Yes | The API area | activities.json | |
| General | Yes | Parameters described in API syntax section | Structure of an API call | |
| Action | Yes | The action to perform | action=update | |
| Input | Yes | JSON string | See below | 
| JSON Input | Mandatory | Description | Examples | 
|---|---|---|---|
| Identifier | Yes | Data identifying activity to update | "activityID": 6958 | 
| Update data | Yes | Data to update on activity | "activityDetails": "Meeting at Boundry Mill" | 
Example request:
http://<SERVER>/jsonapi/activities.json?company=1&user=user&password=user&version=4&action=update&input={
  "data": [
    {
      "activityID": 6958,
      "activityDetails": "Meeting at Boundry Mill"
    }
  ]
}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
    }
  ]
}Note: To discover which fields are editable make a call to the "Activity details" endpoint and specify '&style=modelstructure' see Meta-data
