任务 API

任务的增删改查和排序,以及团队的任务类型、任务状态、工作流和优先级。

由群历 REST API 的 OpenAPI 契约(openapi/qunli-api.yaml,qunli-api 提交 f18e40d)生成。路径都相对于 https://qunli.co;认证见认证,响应包装、分页和错误格式见约定。字段说明是契约里的英文原文。

任务

GET/api/v1/accounts/{account_id}/tasks

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
content查询full | summary否full (default): rows carry their whole body. summary: rows leave out content_html, content_json, content_markdown and content_version and carry only preview_text / excerpt (documents: also preview_html); read one record for its body. Other values → 400 param_invalid.默认 full
page查询integer否1-based page number (meta.page / meta.has_next say where you are).默认 1
limit查询integer否Rows per page (default 100); values outside 1–1000 are clamped into that range.默认 100
assignee_id查询string (uuid) 或 string (uuid)[]否Keep tasks assigned to this user (UUID). Repeat as assignee_id[] for several.
task_type_id查询string (uuid) 或 string (uuid)[]否Keep tasks of this task type (UUID). Repeat as task_type_id[] for several.
task_status_id查询string (uuid) 或 string (uuid)[]否Keep tasks in this status (UUID). Repeat as task_status_id[] for several.
priority_id查询string (uuid) 或 string (uuid)[]否Keep tasks with this priority (UUID). Repeat as priority_id[] for several.
scope查询string否all (default), mine (assigned to me), or members (assigned to any member_ids). Intersects existing filters.
member_ids查询string 或 string[]否Required for scope=members. 1–100 live account member refs (U12) or user UUIDs, comma-separated or array. OR across selected members; intersects project filters and caller access.
project_ids查询string否Comma-separated project refs/UUIDs; intersects accessible projects.
due_from查询string否Keep tasks whose due_date is on or after this date (YYYY-MM-DD, inclusive). Tasks without a due_date are excluded whenever due_from or due_to is given.
due_to查询string否Keep tasks whose due_date is on or before this date (YYYY-MM-DD, inclusive).
assignee查询string否me keeps tasks assigned to the caller (the only supported value).
finishing查询string否not_finished keeps open tasks; finished keeps completed or cancelled ones.

响应

状态说明返回
200Task listdata: Task[]
400Malformed request or invalid parameter.ProblemDetails
401Missing or invalid authentication.ProblemDetails

POST/api/v1/accounts/{account_id}/tasks

Create a task (account-scoped; project_id in the body)

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。

请求体application/json,必填

字段类型必填说明
project_idstring (uuid)否createAccountTask only — the project to create the task in.
recordingRecordingFields否The fields every recording type shares, sent under recording. id is create-only (a client-generated UUID).
recording.idstring (uuid)否
recording.titlestring否
recording.statusstring否
recording.content_htmlstring | null否已弃用
recording.content_jsonany否已弃用
recording.content_markdownstring | null否Canonical body (GFM). When present the server renders and sanitizes content_html from it, ignoring any client-sent content_html/content_json. Preferred over content_html and content_json for new integrations. Hard cap 131072 bytes (128KB, UTF-8 bytes — not characters); a larger body is rejected with 422 validation_error ("正文超出 128KB 上限"): upload long content as an attachment or split it into multiple documents. Pre-existing over-limit rows stay readable and editable as long as the body is untouched.
recording.content_versioninteger | null否Update only. The content_version the edit started from (recommended for every body edit). When present and the request changes the body, a stale value is refused with 409 content_conflict and nothing is written; the problem body carries the current content_version. Omit it (or send null) for last-write-wins. Title- or metadata-only updates never conflict.
taskTaskFields否Task fields (tasks_controller#recordable_params). A task_status_id must be a status of the task's type — on update, of the requested task_type_id, else the current type — or the request fails with 422 validation_error (field task_status_id). On create it defaults to the type's first status; priority_id defaults to the team's first priority. An update that changes task_type_id without a task_status_id keeps the current status when the new type has it, otherwise moves the task to the new type's first status in the same stage, otherwise to its first status (422 when the new type has no statuses); the response carries the resulting task_status_id. A task_type_id of another team is 404. Assigning on create notifies the assignee (assigned/assigned), as assigning later does.
task.idstring (uuid)否
task.task_type_idstring (uuid)否
task.task_status_idstring (uuid)否
task.assignee_idstring (uuid) | null否
task.priority_idstring (uuid)否
task.due_datestring (date) | null否
task.story_pointsnumber | null否
task.version_idstring (uuid) | null否

响应

状态说明返回
201Created taskdata: Task
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
422Validation failed.ProblemDetails

GET/api/v1/accounts/{account_id}/tasks/{id}

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string (ref)是引用号,例如 T1042,大小写不敏感,可带前导 #。

响应

状态说明返回
200Taskdata: Task
401Missing or invalid authentication.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails

PATCH/api/v1/accounts/{account_id}/tasks/{id}

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string (ref)是引用号,例如 T1042,大小写不敏感,可带前导 #。

请求体application/json,必填

字段类型必填说明
project_idstring (uuid)否createAccountTask only — the project to create the task in.
recordingRecordingFields否The fields every recording type shares, sent under recording. id is create-only (a client-generated UUID).
recording.idstring (uuid)否
recording.titlestring否
recording.statusstring否
recording.content_htmlstring | null否已弃用
recording.content_jsonany否已弃用
recording.content_markdownstring | null否Canonical body (GFM). When present the server renders and sanitizes content_html from it, ignoring any client-sent content_html/content_json. Preferred over content_html and content_json for new integrations. Hard cap 131072 bytes (128KB, UTF-8 bytes — not characters); a larger body is rejected with 422 validation_error ("正文超出 128KB 上限"): upload long content as an attachment or split it into multiple documents. Pre-existing over-limit rows stay readable and editable as long as the body is untouched.
recording.content_versioninteger | null否Update only. The content_version the edit started from (recommended for every body edit). When present and the request changes the body, a stale value is refused with 409 content_conflict and nothing is written; the problem body carries the current content_version. Omit it (or send null) for last-write-wins. Title- or metadata-only updates never conflict.
taskTaskFields否Task fields (tasks_controller#recordable_params). A task_status_id must be a status of the task's type — on update, of the requested task_type_id, else the current type — or the request fails with 422 validation_error (field task_status_id). On create it defaults to the type's first status; priority_id defaults to the team's first priority. An update that changes task_type_id without a task_status_id keeps the current status when the new type has it, otherwise moves the task to the new type's first status in the same stage, otherwise to its first status (422 when the new type has no statuses); the response carries the resulting task_status_id. A task_type_id of another team is 404. Assigning on create notifies the assignee (assigned/assigned), as assigning later does.
task.idstring (uuid)否
task.task_type_idstring (uuid)否
task.task_status_idstring (uuid)否
task.assignee_idstring (uuid) | null否
task.priority_idstring (uuid)否
task.due_datestring (date) | null否
task.story_pointsnumber | null否
task.version_idstring (uuid) | null否

响应

状态说明返回
200Updated taskdata: Task
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
409content_conflict — the body was saved elsewhere since the request's recording.content_version; nothing was written. Rebase the edit onto the returned content_version (or reload) and save again.ProblemDetails
422Validation failed.ProblemDetails

DELETE/api/v1/accounts/{account_id}/tasks/{id}

Soft-delete a task (returns the trashed recording)

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string (ref)是引用号,例如 T1042,大小写不敏感,可带前导 #。

响应

状态说明返回
200Trashed taskdata: Task
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails

GET/api/v1/accounts/{account_id}/projects/{project_id}/tasks

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
project_id路径string是
content查询full | summary否full (default): rows carry their whole body. summary: rows leave out content_html, content_json, content_markdown and content_version and carry only preview_text / excerpt (documents: also preview_html); read one record for its body. Other values → 400 param_invalid.默认 full
page查询integer否1-based page number (meta.page / meta.has_next say where you are).默认 1
limit查询integer否Rows per page (default 100); values outside 1–1000 are clamped into that range.默认 100
assignee_id查询string (uuid) 或 string (uuid)[]否Keep tasks assigned to this user (UUID). Repeat as assignee_id[] for several.
task_type_id查询string (uuid) 或 string (uuid)[]否Keep tasks of this task type (UUID). Repeat as task_type_id[] for several.
task_status_id查询string (uuid) 或 string (uuid)[]否Keep tasks in this status (UUID). Repeat as task_status_id[] for several.
priority_id查询string (uuid) 或 string (uuid)[]否Keep tasks with this priority (UUID). Repeat as priority_id[] for several.
scope查询string否all (default), mine (assigned to me), or members (assigned to any member_ids). Intersects existing filters.
member_ids查询string 或 string[]否Required for scope=members. 1–100 live account member refs (U12) or user UUIDs, comma-separated or array. OR across selected members; intersects project filters and caller access.
project_ids查询string否Comma-separated project refs/UUIDs; intersects accessible projects.
due_from查询string否Keep tasks whose due_date is on or after this date (YYYY-MM-DD, inclusive). Tasks without a due_date are excluded whenever due_from or due_to is given.
due_to查询string否Keep tasks whose due_date is on or before this date (YYYY-MM-DD, inclusive).
assignee查询string否me keeps tasks assigned to the caller (the only supported value).
finishing查询string否not_finished keeps open tasks; finished keeps completed or cancelled ones.

响应

状态说明返回
200Task listdata: Task[]
400Malformed request or invalid parameter.ProblemDetails
401Missing or invalid authentication.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails

POST/api/v1/accounts/{account_id}/projects/{project_id}/tasks

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
project_id路径string是

请求体application/json,必填

字段类型必填说明
project_idstring (uuid)否createAccountTask only — the project to create the task in.
recordingRecordingFields否The fields every recording type shares, sent under recording. id is create-only (a client-generated UUID).
recording.idstring (uuid)否
recording.titlestring否
recording.statusstring否
recording.content_htmlstring | null否已弃用
recording.content_jsonany否已弃用
recording.content_markdownstring | null否Canonical body (GFM). When present the server renders and sanitizes content_html from it, ignoring any client-sent content_html/content_json. Preferred over content_html and content_json for new integrations. Hard cap 131072 bytes (128KB, UTF-8 bytes — not characters); a larger body is rejected with 422 validation_error ("正文超出 128KB 上限"): upload long content as an attachment or split it into multiple documents. Pre-existing over-limit rows stay readable and editable as long as the body is untouched.
recording.content_versioninteger | null否Update only. The content_version the edit started from (recommended for every body edit). When present and the request changes the body, a stale value is refused with 409 content_conflict and nothing is written; the problem body carries the current content_version. Omit it (or send null) for last-write-wins. Title- or metadata-only updates never conflict.
taskTaskFields否Task fields (tasks_controller#recordable_params). A task_status_id must be a status of the task's type — on update, of the requested task_type_id, else the current type — or the request fails with 422 validation_error (field task_status_id). On create it defaults to the type's first status; priority_id defaults to the team's first priority. An update that changes task_type_id without a task_status_id keeps the current status when the new type has it, otherwise moves the task to the new type's first status in the same stage, otherwise to its first status (422 when the new type has no statuses); the response carries the resulting task_status_id. A task_type_id of another team is 404. Assigning on create notifies the assignee (assigned/assigned), as assigning later does.
task.idstring (uuid)否
task.task_type_idstring (uuid)否
task.task_status_idstring (uuid)否
task.assignee_idstring (uuid) | null否
task.priority_idstring (uuid)否
task.due_datestring (date) | null否
task.story_pointsnumber | null否
task.version_idstring (uuid) | null否

响应

状态说明返回
201Created taskdata: Task
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
422Validation failed.ProblemDetails

GET/api/v1/accounts/{account_id}/users/{user_id}/tasks

A member's open tasks, as far as the caller can read them

The same list as GET .../my/tasks for any member (open = backlog, todo or in-progress stage), limited to projects the caller can read; paginated, default limit 50, newest first. meta.hidden_count is the number of that member's open tasks in projects the caller cannot read (shown as "N more in projects you cannot access", never listed).

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
user_id路径string是User UUID or member ref ("U12").
content查询full | summary否full (default): rows carry their whole body. summary: rows leave out content_html, content_json, content_markdown and content_version and carry only preview_text / excerpt (documents: also preview_html); read one record for its body. Other values → 400 param_invalid.默认 full
page查询integer否
limit查询integer否

响应

状态说明返回
200Open tasks (paginated) with hidden_countdata: Task[] · meta: object
401Missing or invalid authentication.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails

GET/api/v1/accounts/{account_id}/my/tasks

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
content查询full | summary否full (default): rows carry their whole body. summary: rows leave out content_html, content_json, content_markdown and content_version and carry only preview_text / excerpt (documents: also preview_html); read one record for its body. Other values → 400 param_invalid.默认 full

响应

状态说明返回
200Assigned, unfinished tasks (paginated)data: Task[] · meta: PaginationMeta
401Missing or invalid authentication.ProblemDetails

POST/api/v1/accounts/{account_id}/task_moves

Reorder / restatus a task (returns the updated task)

The task must be accessible and its neighbors must belong to its project; an unknown task or neighbor returns 404. task_status_id must be a status of the task's type, as on PATCH /tasks/{id}: any other status (another type's, or another team's) fails with 422 validation_error (field task_status_id) and the task is left as it was. A task_status_id equal to the task's current status is not a status change and is not checked, and a move without task_status_id only reorders.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。

请求体application/json,必填

字段类型必填说明
moveobject是
move.task_idstring (uuid)是
move.prevstring (uuid) | null否
move.nextstring (uuid) | null否
move.task_status_idstring (uuid)否

响应

状态说明返回
200Updated taskdata: Task
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
422Validation failed.ProblemDetails

任务类型

GET/api/v1/accounts/{account_id}/task_types

List task types for the account

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。

响应

状态说明返回
200Task type listdata: TaskType[]
401Missing or invalid authentication.ProblemDetails

POST/api/v1/accounts/{account_id}/task_types

Create a task type

Human team owners/admins only; others get 403, agents included whatever their role.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。

请求体application/json,必填

字段类型必填说明
task_typeTaskTypeInput是Writable attributes for create/update (wrapped under task_type).
task_type.namestring否
task_type.colorstring否
task_type.descriptionstring | null否
task_type.is_project_defaultboolean否
task_type.is_milestoneboolean否

响应

状态说明返回
201Task type createddata: TaskType
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
422Validation failed.ProblemDetails

GET/api/v1/accounts/{account_id}/task_types/{id}

Fetch a task type

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string是

响应

状态说明返回
200Task typedata: TaskType
401Missing or invalid authentication.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails

PATCH/api/v1/accounts/{account_id}/task_types/{id}

Update a task type

Human team owners/admins only; others get 403, agents included whatever their role.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string是

请求体application/json,必填

字段类型必填说明
task_typeTaskTypeInput是Writable attributes for create/update (wrapped under task_type).
task_type.namestring否
task_type.colorstring否
task_type.descriptionstring | null否
task_type.is_project_defaultboolean否
task_type.is_milestoneboolean否

响应

状态说明返回
200Updated task typedata: TaskType
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
422Validation failed.ProblemDetails

DELETE/api/v1/accounts/{account_id}/task_types/{id}

Delete a task type (409 while tasks outside the recycle bin use it; trashed tasks and those of deleted projects move to another type)

Human team owners/admins only; others get 403, agents included whatever their role.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string是

响应

状态说明返回
200Deleted (no content payload)data: null
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
409State conflict.ProblemDetails

任务状态

GET/api/v1/accounts/{account_id}/task_statuses

List task statuses for the account

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。

响应

状态说明返回
200Task status listdata: TaskStatus[]
401Missing or invalid authentication.ProblemDetails

POST/api/v1/accounts/{account_id}/task_statuses

Create a task status

Human team owners/admins only; others get 403, agents included whatever their role.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。

请求体application/json,必填

字段类型必填说明
task_statusTaskStatusInput是
task_status.namestring否
task_status.colorstring | null否
task_status.stagestring否

响应

状态说明返回
201Task status createddata: TaskStatus
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
422Validation failed.ProblemDetails

GET/api/v1/accounts/{account_id}/task_statuses/{id}

Fetch a task status

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string是

响应

状态说明返回
200Task statusdata: TaskStatus
401Missing or invalid authentication.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails

PATCH/api/v1/accounts/{account_id}/task_statuses/{id}

Update a task status

Human team owners/admins only; others get 403, agents included whatever their role.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string是

请求体application/json,必填

字段类型必填说明
task_statusTaskStatusInput是
task_status.namestring否
task_status.colorstring | null否
task_status.stagestring否

响应

状态说明返回
200Updated task statusdata: TaskStatus
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
422Validation failed.ProblemDetails

DELETE/api/v1/accounts/{account_id}/task_statuses/{id}

Delete a task status (409 while tasks outside the recycle bin have it or a task type uses it; trashed tasks and those of deleted projects move to another status)

Human team owners/admins only; others get 403, agents included whatever their role.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string是

响应

状态说明返回
200Deleteddata: null
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
409State conflict.ProblemDetails

PUT/api/v1/accounts/{account_id}/task_statuses/{id}/move

Reorder a task status (legacy verb path; see api-conventions §9)

Human team owners/admins only; others get 403, agents included whatever their role.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string是

请求体application/json,必填

字段类型必填说明
positioninteger是
stagestring否

响应

状态说明返回
200Reordered task statusdata: TaskStatus
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
422Validation failed.ProblemDetails

工作流

GET/api/v1/accounts/{account_id}/task_type_statuses

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。

响应

状态说明返回
200Task type status listdata: TaskTypeStatus[]
401Missing or invalid authentication.ProblemDetails

PUT/api/v1/accounts/{account_id}/task_type_statuses/activate

Both referenced resources must belong to this account; otherwise returns 404.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。

请求体application/json,必填

字段类型必填说明
task_type_statusobject是
task_type_status.task_type_idstring (uuid)否
task_type_status.task_status_idstring (uuid)否

响应

状态说明返回
200Activated linkdata: TaskTypeStatus
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
422Validation failed.ProblemDetails

PUT/api/v1/accounts/{account_id}/task_type_statuses/deactivate

Both referenced resources must belong to this account; otherwise returns 404.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。

请求体application/json,必填

字段类型必填说明
task_type_statusobject是
task_type_status.task_type_idstring (uuid)否
task_type_status.task_status_idstring (uuid)否

响应

状态说明返回
200Deactivated (no content payload)data: null
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails

优先级

GET/api/v1/accounts/{account_id}/priorities

List priorities for the account

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。

响应

状态说明返回
200Priority listdata: Priority[]
401Missing or invalid authentication.ProblemDetails

POST/api/v1/accounts/{account_id}/priorities

Create a priority

Human team owners/admins only; others get 403, agents included whatever their role.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。

请求体application/json,必填

字段类型必填说明
priorityPriorityInput是
priority.namestring否
priority.positioninteger否
priority.is_defaultboolean否
priority.colorstring | null否

响应

状态说明返回
201Priority createddata: Priority
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
422Validation failed.ProblemDetails

GET/api/v1/accounts/{account_id}/priorities/{id}

Fetch a priority

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string是

响应

状态说明返回
200Prioritydata: Priority
401Missing or invalid authentication.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails

PATCH/api/v1/accounts/{account_id}/priorities/{id}

Update a priority

Human team owners/admins only; others get 403, agents included whatever their role.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string是

请求体application/json,必填

字段类型必填说明
priorityPriorityInput是
priority.namestring否
priority.positioninteger否
priority.is_defaultboolean否
priority.colorstring | null否

响应

状态说明返回
200Updated prioritydata: Priority
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
422Validation failed.ProblemDetails

DELETE/api/v1/accounts/{account_id}/priorities/{id}

Delete a priority (409 while tasks outside the recycle bin use it; trashed tasks and those of deleted projects move to the default priority)

Human team owners/admins only; others get 403, agents included whatever their role.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string是

响应

状态说明返回
200Deleteddata: null
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
409State conflict.ProblemDetails

PUT/api/v1/accounts/{account_id}/priorities/{id}/move

Reorder a priority (legacy verb path; see api-conventions §9)

Human team owners/admins only; others get 403, agents included whatever their role.

参数

参数位置类型必填说明
account_id路径string是团队的数字 id,和网页地址里的相同,例如 2025。
id路径string是

请求体application/json,必填

字段类型必填说明
positioninteger是

响应

状态说明返回
200Reordered prioritydata: Priority
401Missing or invalid authentication.ProblemDetails
403Authenticated but not permitted.ProblemDetails
404Resource does not exist or has been trashed.ProblemDetails
422Validation failed.ProblemDetails

数据结构

上面的响应用到的对象。字段的类型是另一个对象时,它也列在这里。

Task

字段类型必填说明
idstring (uuid)是
public_idstring | null否
legacy_idstring | null是
titlestring是
content_htmlstring | null否
content_jsonobject | null否
content_markdownstring | null否Canonical body (GFM). content_html is rendered server-side from it; null on rows not yet migrated from Tiptap JSON.
content_versioninteger否Body version for compare-and-set saves. Starts at 0 and increases by one each time content_markdown / content_html / content_json actually changes (any write path). Send it back as recording.content_version when saving a body edit.
preview_textstring否Lists only. The body as plain text (HTML tags removed, entities left encoded, e.g. "&"), cut to 80 UTF-16 units; "" without a body.
excerptstring | null否Lists only. Up to 100 characters of the body's text, images and videos shown as [图片] / [视频]; null without a body.
preview_htmlstring否Document lists only. The first 3000 characters of content_html (may end inside a tag), for thumbnails.
comments_countinteger是
typestring是
statusdraft | active | archived | trashed是
recordable_typeTask是
app_urlstring | null是
account_idstring (uuid)是
account_public_idstring是
project_idstring (uuid)是
project_public_idstring是
creator_idstring (uuid)是
parent_idstring (uuid) | null否
parent_public_idstring | null否
ancestorsFolderCrumb[]否
created_atstring (date-time)是
updated_atstring (date-time)是Last change of the recording or of its body, whichever is later.
reactionsReaction[]是
edited_byUserRef否Comments and discussions only: the last member other than the author who edited the title or body (the author's own later edits keep it); null when only the author edited it.
trashed_byUserRef否Comments and discussions only: the member other than the author who trashed it; null otherwise (cleared by the author's own trash and on restore). A comment with status "trashed" and a trashed_by is a placeholder in GET .../recordings/:id/comments — its title and content are empty.
due_datestring (date) | null是
start_datestring (date) | null是
rankstring是
story_pointsinteger | null是
priority_idstring (uuid)是
task_type_idstring (uuid)是
task_status_idstring (uuid)是
version_idstring (uuid) | null是
assignee_idstring (uuid) | null是
backlog_atstring (date-time) | null是
todo_atstring (date-time) | null是
in_progress_atstring (date-time) | null是
completed_atstring (date-time) | null是
cancelled_atstring (date-time) | null是
projectProjectSummary否Cross-project lists only (GET .../my/tasks, GET .../users/{user_id}/tasks): the task's project, so a row can show where it lives without loading the project list.

PaginationMeta

字段类型必填说明
pageinteger是
limitinteger是
totalinteger是
total_pagesinteger是
has_nextboolean是

TaskType

字段类型必填说明
idstring (uuid)是
namestring是
colorstring是
descriptionstring | null是
tasks_countinteger是Tasks of this type, not counting trashed tasks or the tasks of deleted projects.
positioninteger是
is_project_defaultboolean是
is_milestoneboolean是
account_idstring (uuid)是
account_public_idstring是
task_status_idsstring (uuid)[]是
created_atstring (date-time)是
updated_atstring (date-time)是

TaskStatus

字段类型必填说明
idstring (uuid)是
namestring是
colorstring | null是
stagebacklog | todo | in_progress | completed | cancelled是
positioninteger是
tasks_countinteger是Tasks in this status, not counting trashed tasks or the tasks of deleted projects.
account_idstring (uuid)是
account_public_idstring是
created_atstring (date-time)是
updated_atstring (date-time)是

TaskTypeStatus

字段类型必填说明
idstring (uuid)是
task_type_idstring (uuid)是
task_status_idstring (uuid)是
created_atstring (date-time)是
updated_atstring (date-time)是

Priority

字段类型必填说明
idstring (uuid)是
namestring是
positioninteger是
is_defaultboolean是
colorstring | null是
account_idstring (uuid)是
account_public_idstring是
created_atstring (date-time)是
updated_atstring (date-time)是

FolderCrumb

字段类型必填说明
idstring (uuid)是
public_idstring | null是
titlestring是

Reaction

字段类型必填说明
idstring (uuid)是
actor_idstring (uuid)是
reactable_idstring (uuid)是
reactable_typestring是
reaction_type_idstring (uuid)是
reaction_emojistring是
reaction_namestring是
created_atstring (date-time)是
updated_atstring (date-time)是

UserRef

字段类型必填说明
idstring (uuid)是User UUID.
public_idstring | null是Member ref ("U12") in this account.
namestring | null是
avatar_urlstring | null是
kindhuman | agent | null是null only for an unknown (deleted) user.

ProjectSummary

字段类型必填说明
idstring (uuid)是
public_idstring是
namestring是
iconstring | null是