createActivity
POST |
/api/widget/createActivity |
Example of payload of data to the api in order to create or update a contact record within the TrackerRMS database.
Sample Request:
{
"trackerrms": {
"createActivity": {
"credentials": {
"username": "my.name@domain.com",
"password": "Welcome123",
"oauthtoken": "1bc7ca1e-8b9a-11e9-bc42-526af7764f64"
},
"instructions": {},
"activity": {
"subject": "Telephone Call to Customer X",
"type": "Telephone",
"date": "2023-01-01",
"time": "11:34 AM",
"status": "Completed",
"priority": "Medium",
"contactType": "Outbound",
"note": "Lorem ipsum dolor sit amet.",
"userId": 20,
"linkRecordType": "N",
"linkRecordId": 1234
},
"customfields": [
{
"id": 448,
"value": "High"
},
{
"id": 449,
"value": "Near Miss"
}
]
}
}
}
Sample Response:
{
"status": 0,
"message": "success",
"count": 0
}
Response status codes:
0 |
success (message will be “created” or “updated”) |
1 |
user not found |
2 |
user not active |
3 |
record found and cannot be overwritten |
99 |
Invalid request |
LinkRecordType:
C |
Clients |
N |
Contacts |
L |
Leads |
O |
Opportunities |
P |
Projects |
T |
Tickets |
R |
Resources |
The LinkRecordId must be the Tracker ID for the record to attach the Activity to.