Update a workflow task

PUT /api/v1/workflow/{workflow_uuid}/task/{workflowTask_uuid}
application/json

Body

  • name string

    The name of the task.

  • Denotes if the task is visible to clients.

  • priority string

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

  • The extra description added to a task.

  • position integer

    The task positioning within the sub tasks or trigger tasks.

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

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

  • participants array[string]

    Account UUIDs to be assigned to the task.

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

  • The task that will trigger this task to be created.

  • 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.

  • 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.

  • 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.

PUT /api/v1/workflow/{workflow_uuid}/task/{workflowTask_uuid}
curl \
 --request PUT 'https://api.plannrcrm.com/api/v1/workflow/workflow_uuid/task/workflowTask_uuid' \
 --header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 --header "Content-Type: application/json" \
 --header "Accept: application/json" \
 --data '{"name":"Mortgage Review","visible_to_clients":true,"priority":"high","description":"We need to run through a mortgage review with Gareth, as he can probably find a better deal.","position":4,"offset_due_at_by":5,"task_status_uuid":"1ffdfb2f-a65d-49e4-8d28-4a8feb06aed0","participants":["6473c935-4d17-48ec-83c9-b2cd3bb0d1f8","a56cd7e7-75e1-424f-88f0-fd96ff07ec01"],"parent_uuid":"0f67cd72-dbc5-4c35-a84d-bacc22257cb5","trigger_uuid":"d9ea385d-c1eb-4fc4-b49e-52f84d790368","auto_assign_assigned_adviser":true,"auto_assign_assigned_administrator":true,"auto_assign_clients":true,"groups":["98ad15ef-acdd-46df-858c-86abda527456","009a5dab-9fa5-4671-81cc-7a9417a0d0d6"]}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json

# Payload
{
  "name": "Mortgage Review",
  "visible_to_clients": true,
  "priority": "high",
  "description": "We need to run through a mortgage review with Gareth, as he can probably find a better deal.",
  "position": 4,
  "offset_due_at_by": 5,
  "task_status_uuid": "1ffdfb2f-a65d-49e4-8d28-4a8feb06aed0",
  "participants": [
    "6473c935-4d17-48ec-83c9-b2cd3bb0d1f8",
    "a56cd7e7-75e1-424f-88f0-fd96ff07ec01"
  ],
  "parent_uuid": "0f67cd72-dbc5-4c35-a84d-bacc22257cb5",
  "trigger_uuid": "d9ea385d-c1eb-4fc4-b49e-52f84d790368",
  "auto_assign_assigned_adviser": true,
  "auto_assign_assigned_administrator": true,
  "auto_assign_clients": true,
  "groups": [
    "98ad15ef-acdd-46df-858c-86abda527456",
    "009a5dab-9fa5-4671-81cc-7a9417a0d0d6"
  ]
}