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

ParameterValueDescription
queueIdIntegerID for a task queue

JSON payload

ParameterValueDescriptionRequired
TaskIdStringA unique ID for the taskYes
SubjectStringSubject for the taskYes
TextStringDetailed task descriptionNo
EntryMenuIdIntegerEntry menu ID. The Entry menu needs to be of the type: TaskNo
EntryMenuParametersStringComma-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
CultureStringSpecifies which language to associate with the task. E.g. da-DK. If not specified, the default language is used for the OfficeTeam configuration.No
TagsStringComma-separated list of words describing the task. E.g. Tags=Error message,SalesNo

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"}