Activity create
Create a new activity.
Parameter | Description | Example | More info |
---|---|---|---|
API | The API area | activities.json | |
Action | The action to perform | action=update | |
General | Parameters described in overview | user=user&password=user | |
input | Activitytype code (mandatory),client code (mandatory), then name/value pairs | "data": [<see example>] | |
Response | Returned data | See below |
Example request:
Request to create an activity
http://<SERVER>/jsonapi/activities.json?company=1&user=user&password=user&version=3.3&action=create&input={
"data": [
{
"activityActivitytypeCode": "Notes",
"activityClientCode": "1/BEACHGOL",
"activitySubject": "My Meeting notes",
"activityDetails": "Meeting at Boundry Milll",
"activityCompanyNumber": 1,
"activityCustomField186": "My Text"
}
]
}
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"activityuuid": "F718837693D3694F00D2A0F50FC67F1A",
"activityID": 6743,
"activityOwnerID": 54,
"activityOwnerName": "User",
"activityTimeStampModified": 1458753687,
"activityRecordVersionNumber": 1
}
]
}