Add task to project
POST
/api/v1/tasks/{gid}/projects
Add a task to a project.
Args: gid: Task GID. body: Project GID to add task to.
Returns: Updated task data.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” gid
required
Gid
string
Request Body required
Section titled “Request Body required ” AddToProjectRequest
Request body for adding task to a project.
Per FR-API-TASK-016: Add task to project endpoint.
Attributes: project_gid: GID of the project to add task to.
object
project_gid
required
Project Gid
Project GID to add to
string
Responses
Section titled “ Responses ”Successful Response
SuccessResponse[AsanaResource]
object
data
required
meta
required
ResponseMeta
Response metadata
object
request_id
required
Request Id
Request correlation ID
string
timestamp
Timestamp
Response timestamp (UTC)
string format: date-time
pagination
Any of:
PaginationMeta
Pagination metadata for list responses.
Per ADR-ASANA-008: Cursor-based pagination with opaque offset.
Attributes: limit: Number of items requested per page. has_more: Whether more items exist after this page. next_offset: Opaque cursor for next page (None if no more pages).
null
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string