younifyd
Menu

Update tasks

Update tasks

PATCH/v1/tasks

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Update tasks action (under Tasks).
  3. Fill in the fields below, then reference the result from later steps as {{updateTasks.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

tasksarray<object>required

This will have the list of tasks that you want to update, each task is a JSON that have id and status fields, maximum length of tasks is 1000.

idintegerrequired

This contains the task id that you want to update, note that if one of the ids does not exists, the whole batch won't be updated.

statusstringrequired

This contains the new status that you want to update the task with, the only allowed values are: ['QUEUED', 'CANCELED'].

One ofQUEUEDCANCELED

json
{
  "tasks": [
    {
      "id": 0,
      "status": "QUEUED"
    }
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{updateTasks.response.data.<field>}}.

tasksarray<oneOf>
json
{
  "tasks": [
    null
  ]
}

Need more? See the Constructor guide for connection setup and behaviour shared by every action.