Create a task in a queue
POST {{httptype}}://{{IP}}/mot/{{miralixAccount}}/queues/{{taskQueueId}}/tasks/
Miralix OfficeTeam creates a task in the desired task queue.
HTTP POST: /queues/{queueId}/tasks
Parameter | Value | Description |
---|---|---|
queueId | Integer | ID for a task queue |
JSON payload
Parameter | Value | Description | Required |
---|---|---|---|
TaskId | String | A unique ID for the task | Yes |
Subject | String | Subject for the task | Yes |
Text | String | Detailed task description | No |
EntryMenuId | Integer | Entry menu ID. The Entry menu needs to be of the type: Task | No |
EntryMenuParameters | String | Comma-separated list of entry menu parameters. For example: “CrmId=197,SubTaskId=654” The parameters replace parameters (like <@CrmId@> and <@SubTaskId@>) specified in the entry menu URL or specified in the Arguments for a process. | No |
Culture | String | Specifies which language to associate with the task. E.g. da-DK. If not specified, the default language is used for the OfficeTeam configuration. | No |
Tags | String | Comma-separated list of words describing the task. E.g. Tags=Error message,Sales | No |
JSON payload Example
{
"TaskId":"Support-1023",
"Subject":"Update Customer A",
"EntryMenuId":"105",
"EntryMenuParameters":"CrmId=191597,SubTaskId=654",
"Text":"Investigate how things fit together. It doesn't seem to work as intended. Then we need to fix that",
"Culture":"da-DK",
"Tags":"Error message,Customer Update"
}
Example
https://192.168.1.10/mot/greenbox/queues/181/tasks - A task is created in the queue with the queueuId 181
Resultat
- 200 OK - The task is created and added to the queue.
- 400 Bad Request - One or more parameters are not valid.
- 404 Not Found - Queue could not be found.
- 500 Internal Server Error - Internal processing error.
Request Body
{"TaskId"=>"{{TaskId}}", "Subject"=>"Task No. {{TaskId}}", "Text"=>"Help the customer with a little of this and that! https://www.google.com/search?q={{TaskId}} or call +45 83848586", "Culture"=>"da-DK", "Tags"=>"Test"}