Tasks

Create a new task

Changed on

Adds a new task to a contract. Use it to record new work; to change a task that already exists, use PATCH /tasks/{task_id}, and for a one-off payment that is not a task, use POST /contracts/{contract_id}/off-cycle-payments instead.

Token scopes: contracts:write

post/contracts/{contract_id}/tasks

Request

  • Base URL
    https://api.letsdeel.com/rest
  • Auth
    HTTP bearer

Path parameters

contract_id, string required

The unique Deel contract ID associated with the task.

Request body

object required
data, ContractsContractIdTasksPostRequestBodyContentApplicationJsonSchemaData required

Response

The task was successfully created.

TasksCreateContractTaskResponse201 required
data, ContractsContractIdTasksPostResponsesContentApplicationJsonSchemaData required

Changes

    • breaking

      the request property data became required

    • warning

      added the new new enum value to the data/status/oneOf[subschema #1: ContractsContractIdTasksPostResponsesContentApplicationJsonSchemaDataStatus] response property for the response status

    • info

      added the new optional request property data/group_key

    1 more change in this revision