An activity can have one or more secondary owners (called 'others' in the web ui). These endpoints are for listing all the possible owners - and showing the selected ones, and also an API for updating the activity with selected secondary owners
Secondary Owner lookup (also called 'others')
Example request:
Parameter | Description | Examples |
---|---|---|
Action | Defines the the API call | action=secondaryowners |
Parameters described in overview | ||
Set Variable_selected | selected secondary owners | userid=[242,192] |
Company | Specify the company (data-set) | company=1 |
http:///jsonapi/activities.json?user=user&password=user&company=1&action=secondaryowners&userid=[242,192]&version=3.1
Example response
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 172,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"userFullName": "Jim Smith",
"userUserId": 344,
"variable_selected": false
},
{
"userFullName": "Aaron Cronshaw",
"userUserId": 242,
"variable_selected": true
},
Secondary Owner update
Example request:
Parameter | Description | Examples |
---|---|---|
Action | Defines the the API call | action=update |
Input | JSON array | {"data": [{"activityID":7476,"activitySecondaryOwnersUserID":[242,192] }]}. |
Parameters described in overview |
http:///jsonapi/notes.json?&user=user&password=user&version=3.1&action=update&input={"data": [{"activityID":7476,"activitySecondaryOwnersUserID":[242,192] }]}.
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"activityID": 7476,
"activityuuid": "34912CA9753A494F8EB70BF0CD385CB7",
"activitySecondaryOwnersDescription": "Adele Graham, Alan Greenwoodx",
"activitySecondaryOwnersUserID": [
242,
192
],
"activityTimeStampModified": 1497456978,
"activityRecordVersionNumber": 112
}
]
}