Skip to main content
POST
Create task

Authorizations

Authorization
string
header
required

Authenticate with an API access token in the Authorization header: Authorization: Bearer <token>. Create a token from the API Access Tokens page in Contractors Cloud, under Integrations.

Body

application/json
subject
string
required

The task's subject line. Required.

Maximum string length: 100
Example:

"Follow up on estimate"

due_at
string
required

Timestamp when the task is due, formatted as YYYY-MM-DD HH:MM:SS. Required.

Example:

"2025-02-20 17:00:00"

assignee_type
enum<string>
required

Whether to assign the task to a user (u) or a team (t). Required.

Available options:
u,
t
Example:

"u"

assignee_id
integer
required

The id of the user or team to assign the task to, matching assignee_type. Required.

Example:

1159

comment
string | null

Free-form notes about the task. Optional.

is_high_priority
boolean

Whether to flag the task as high priority. Optional; defaults to false.

is_complete
boolean

Whether the task is already complete. Optional; defaults to false.

project_id
integer | null

The id of the project to link this task to. Must be an existing project. Optional.

Example:

9103

notifies_on_create
boolean

Whether the assignee should receive an in-app notification when this task is created. Optional.

notifies_on_complete
boolean

Whether the creator should receive an in-app notification when this task is completed. Optional.

project_milestone_id
integer | null

The id of the project workflow milestone to link this task to. Optional. Can only be set at creation — it can't be changed afterward.

project_milestone_task_id
integer | null

The id of the specific milestone step this task represents in the project's workflow. Optional. Can only be set at creation — it can't be changed afterward.

Response

The created task.

id
integer

The task's unique identifier.

Example:

7204

tenant_id
integer

The id of your organization's account.

Example:

12

project_id
integer | null

The id of the project this task is linked to. Null if the task isn't tied to a project.

Example:

9103

project_milestone_id
integer | null

The id of the project workflow milestone this task is linked to. Set only when the task is created as part of a project's workflow; null otherwise. Can't be changed after creation.

project_milestone_task_id
integer | null

The id of the specific milestone step this task represents in the project's workflow. Set only when the task is created as part of a project's workflow; null otherwise. Can't be changed after creation.

created_by
integer | null

The id of the user who created this task. Null if unknown.

Example:

1159

completed_by
integer | null

The id of the user who marked this task complete. Null until the task is completed.

assignee_type
enum<string> | null

Whether this task is assigned to a user (u) or a team (t). Null when the task is unassigned.

Available options:
u,
t
Example:

"u"

assignee_id
integer | null

The id of the assigned user or team, matching assignee_type. Null when the task is unassigned. Include assignee to embed the full object.

Example:

1159

assignee_name
string | null

The display name of the assigned user or team. Maintained automatically; null when the task is unassigned.

Example:

"Mike Johnson"

is_complete
boolean

Whether the task has been completed. Setting this to true through Update task records completed_at and completed_by automatically; setting it back to false clears them.

Example:

false

is_high_priority
boolean

Whether the task is flagged as high priority.

Example:

false

subject
string

The task's subject line.

Example:

"Follow up on estimate"

comment
string | null

Free-form notes about the task. Null if not set.

created_by_name
string | null

The display name of the user who created this task. Maintained automatically; null if unknown.

Example:

"Jane Doe"

notifies_on_create
boolean

Whether the assignee receives an in-app notification when this task is created.

Example:

true

notifies_on_complete
boolean

Whether the creator receives an in-app notification when this task is completed.

Example:

true

due_at
string

Timestamp when the task is due, formatted as YYYY-MM-DD HH:MM:SS.

Example:

"2025-02-20 17:00:00"

created_at
string | null

Timestamp when the task was created, formatted as YYYY-MM-DD HH:MM:SS.

Example:

"2025-02-10 09:20:00"

updated_at
string | null

Timestamp when the task was last updated, formatted as YYYY-MM-DD HH:MM:SS.

Example:

"2025-02-10 09:20:00"

completed_at
string | null

Timestamp when the task was completed, formatted as YYYY-MM-DD HH:MM:SS. Null until the task is completed.