Use this API to create a new calltrack activity. User can only create one activity at a time.
Actor | Permission |
---|---|
User | All of the following are required:
|
Client Application | No additional permission required. |
Actor | License |
---|---|
User | The logged in user must have the following licenses:
|
Client Application | No additional licenses required. |
The request body is mandatory. Request body can be in either XML or JSON format.
Name | Description |
---|---|
department.name | Name of the department in which the activity should be created. |
type.value | Type of the activity. Must be "call_track". |
type.subtype.value | Subtype of the activity. Must be one of the subtypes of calltrack configured in application. To find out the configured values in the system, use Get Activity Attributes API. |
mode.value | Must be "Inbound" or "Outbound". |
subject or content | Must have at least one of subject or content. |
Customer Identifier | Required only if anonymousCustomer query parameter is not present in the request URL. Must have one of the customer identification parameters to identify the customer. Refer Customer Identification section for more details. |
status.assigned.user.id or status.assigned.user.name or status.assigned.user.customAttributes |
Required only if actor is client application. User to whom the activity should be assigned. Refer 'Target User' section for more details. |
Name | Description |
---|---|
case.id | If case.id is not provided, the server creates a new case for this activity. If provided, this case must exist in the system and the activity is associated to the case. |
priority | Priority of the calltrack activity. |
dueDate | Due date of calltrack activity. Must be a future date. |
subject | Subject of calltrack activity. |
attachments | Attachments of the calltrack activity. Refer 'Attachments' section for more details. |
customAttributes | Name must match one of the custom attributes configured in application. If the custom attribute is configured as an enumeration, the value must be one of the predefined values. |
payload.calltrack.content | Supported content type are "text" and "html". One or both can be provided. |
Each attachment must be present within a separate attachment element. It must have the following representation:
Name | Description |
---|---|
altId | Alternate ID of the attachment. |
Optionally, only one of the below attribute can be provided to assign the activity to another user. If none of these are provided, the server assigns the activity to the logged in user.
Name | Description |
---|---|
status.assigned.user.id | Id of the target user. |
status.assigned.user.name | Login Name of the target user. |
status.assigned.user.customAttributes | Any custom attribute that can uniquely identify the target user. |
If anonymousCustomer query parameter is not present in the request URL then one of the following elements must be provided to identify the customer. The identified customer must be present in system. If "Customer departmentalization" setting is enabled in the application, identified customer and the activity being created must belong to the same department.
Name | Description |
---|---|
customer.id | Id of the Customer. |
customer.contacts.contact.id | Contact Id of the customer. |
customer.contacts.contact.phone.id or customer.contacts.contact.postal.id or customer.contacts.contact.email.id or customer.contacts.contact.social.id or customer.contacts.contact.website.id |
Contact Point Id of the customer. |
contactPointData | Must be a valid email address or phone number. Refer Email Address definition for the valid email address format. Phone number must be numbers only. The email address or phone number must be associated with the customer in the application. If "Customer departmentalization" setting is enabled in the application, there must be a customer with this email address or phone number in the department in which activity is being created. |
Created
Bad Request
Unauthorized
Forbidden
Not Acceptable
Internal server error
{- "department": {
- "name": "Service"
}, - "type": {
- "value": "call_track",
- "subtype": {
- "value": "General"
}
}, - "mode": {
- "value": "Inbound"
}, - "contactPointData": "jhenry@customer.com",
- "subject": "Summary of Phone call",
- "attachments": {
- "attachment": [
- {
- "altId": "4ce011a1-22f4-4ba0-842c-75f2dab7efb9"
}, - {
- "altId": "47a64893-1716-4762-8bd5-6cbd84830773"
}
]
}
}
{- "code": "400-101",
- "developerMessage": "Unsupported query parameter(s) supplied: '<query_parameter>'."
}