Use this API to create a new task activity. User can only create one new task activity at a time
Actor | Permission |
---|---|
User | All of the following are required:
|
Client Application | No additional permission required. |
Actor | License |
---|---|
User |
|
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 "task". |
type.subtype.value | Subtype of activity. Must be one of the subtypes of task configured in application. To find out the configured values in the application, refer Get Activity Attributes API. |
subject or payload.task.content | Must at least have one of subject or payload.task.content. |
customer | The attributes provided in the value of query parameters "searchContactOnAttribute" and "activityContact" must be provided in the customer representation. If a customer is found using the value of the query parameter "searchContactOnAttribute", the other values provided in this representation is ignored. If a customer is not found using the value of the query parameter "searchContactOnAttribute":
|
status.assigned.user.id or status.assigned.user.loginId or status.assigned.user.externalId 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 | Case to which activity should be associated with. If this attribute is not provided, the server creates a new case for this activity. If this attribute is 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 task activity. Refer 'Attachments' section for more details. |
customAttributes | Custom attribute of the activity. 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.task.content | Content of the activity. Supported content type are "text" and "html". One or both can be provided. |
Each attachment must be represented as a separate attachment element. It must have the following representation:
Each attachment must be represented as a separate attachment element. It must have the following representation:
Name | Description |
---|---|
altId | 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.loginId | Login ID of the target user. |
status.assigned.user.externalId | External ID of the target user. |
status.assigned.user.customAttributes | Any custom attribute that can uniquely identify the target user. |
This API does not allow specifying "department.name" attribute in the customer element. Instead, when creating a new customer, customer's department is determined as follows:
Additionally, not more than one contact point of the below types can be provided:
Refer the "Create Individual Customer" API for more details.
Created
Bad Request
Unauthorized
Forbidden
Not Acceptable
Internal server error
{- "department": {
- "name": "Service"
}, - "type": {
- "value": "task",
- "subtype": {
- "value": "General"
}
}, - "subject": "Follow up with customer",
- "customer": {
- "type": {
- "value": "individual"
}, - "contacts": {
- "contact": [
- {
- "firstName": "John",
- "email": [
- {
- "emailAddress": "jhenry@customer.com"
}
]
}
]
}
}
}
{- "code": "400-101",
- "developerMessage": "Unsupported query parameter(s) supplied: '<query_parameter>'."
}