Create a workflow task

POST /api/v1/workflow/{workflow_uuid}/task

Path parameters

  • workflow_uuid string Required
application/json

Body Required

  • name string Required

    The name of the task.

  • visible_to_clients boolean

    Denotes if the task is visible to clients.

  • priority string

    The priority of the workflow task. Possible values are: high, low and null

  • description string

    The extra description added to a task.

  • task_status_uuid string

    The UUID of the task status to use as the default for new tasks created in this workflow.

  • offset_due_at_by integer

    The number of days the due_at should be set when the workflow has been triggered.

  • participants array[string]

    Account UUIDs to be assigned to the task.

  • parent_uuid string

    The parent task. Apply this if you want the task to be one of a tasks sub-tasks.

  • trigger_uuid string

    The task that will trigger this task to be created.

  • auto_assign_assigned_adviser boolean

    Denotes that when the workflow is run, should we assign the assigned adviser of the client as a participant of the task. Only works when a workflow is run on a client.

  • auto_assign_assigned_administrator boolean

    Denotes that when the workflow is run, should we assign the administrator of the client as a participant of the task. Only works when a workflow is run on a client.

  • auto_assign_clients boolean

    Denotes that when the workflow is run, should we assign the client as a participant of the task.

  • groups array[string]

    UUIDs of groups that will be assigned when the task is created.

Responses

  • 401 application/json
    Hide response attribute Show response attribute object
    • message string
POST /api/v1/workflow/{workflow_uuid}/task
curl \
 --request POST 'https://api.plannrcrm.com/api/v1/workflow/6ff8f7f6-1eb3-3525-be4a-3932c805afed/task' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"Mortgage Review","visible_to_clients":true,"priority":"low","description":"We need to run through a mortgage review with Gareth, as he can probably find a better deal.","task_status_uuid":"af9f5f51-480c-45b9-9286-685cee8a5630","offset_due_at_by":5,"participants":["467e0c09-400d-43e1-829d-e56dad087c96","dbaf3394-e68b-4232-b843-c48bbf51a49a"],"parent_uuid":"7d1a8084-37ec-4460-b2c6-4b6b85b6097a","trigger_uuid":"6ab29a2c-b309-41b1-ad43-9318ff6e9ca8","auto_assign_assigned_adviser":true,"auto_assign_assigned_administrator":true,"auto_assign_clients":true,"groups":["91e25bdd-b006-4e3f-afff-e90f6e44c696","d60b9d40-c099-48ae-b17f-699a70cd0708"]}'
Request examples
{
  "name": "Mortgage Review",
  "visible_to_clients": true,
  "priority": "low",
  "description": "We need to run through a mortgage review with Gareth, as he can probably find a better deal.",
  "task_status_uuid": "af9f5f51-480c-45b9-9286-685cee8a5630",
  "offset_due_at_by": 5,
  "participants": [
    "467e0c09-400d-43e1-829d-e56dad087c96",
    "dbaf3394-e68b-4232-b843-c48bbf51a49a"
  ],
  "parent_uuid": "7d1a8084-37ec-4460-b2c6-4b6b85b6097a",
  "trigger_uuid": "6ab29a2c-b309-41b1-ad43-9318ff6e9ca8",
  "auto_assign_assigned_adviser": true,
  "auto_assign_assigned_administrator": true,
  "auto_assign_clients": true,
  "groups": [
    "91e25bdd-b006-4e3f-afff-e90f6e44c696",
    "d60b9d40-c099-48ae-b17f-699a70cd0708"
  ]
}
Response examples (401)
{
  "message": "Unauthenticated."
}