Skip to content

Create Subtask

POST
/tasks/{task_id}/subtasks

Create a subtask under this task.

entity_type / entity_id name the RECORD the subtask hangs off and are required - the parent supplies the hierarchy, not the record link. That record is authorised against the caller’s contact, company and deal scopes, so a subtask cannot be attached to something the key cannot see.

parent_task_id in the body is ignored: the parent is the task in the path.

Authorizations

Parameters

Path Parameters

task_id
required

Parent task id (UUID).

string

Parent task id (UUID).

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Create a subtask under an existing task.

entity_type/entity_id are the record the subtask hangs off, and they are required by the app’s own model - a subtask is not implicitly attached to its parent’s record.

object
assignee_id
Any of:
string
assignee_name
Any of:
string
description
Any of:
string
due_date
Any of:
string
entity_id
required

Record id.

string
entity_type
required

Record type: contact | company | deal.

string
parent_task_id
Any of:
string
priority
Any of:
integer
records
Any of:
Array<object>
object
key
additional properties
any
reminder_at
Any of:
string
source_url
Any of:
string
<= 2048 characters
subtask_sort_order
Any of:
integer
tags
Any of:
Array<string>
<= 20 items
task_type
Any of:
string
title
required

Subtask title.

string
visibility
Any of:
string

Responses

201

Successful Response

object
data
required

An open envelope for one record, one dashboard or one job receipt.

Open because most of these reads are COMPUTED shapes - an engagement summary, a next-best-step, an intelligence status - that grow with the product, and dropping a field from an advisory read makes it say “nothing to report” rather than “we did not tell you”.

object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string