Skip to content

Move task to section

POST
/api/v1/tasks/{gid}/section

Move a task to a section within a project.

Args: gid: Task GID. body: Target section and project GIDs.

Returns: Updated task data.

gid
required
Gid
string
MoveSectionRequest

Request body for moving a task to a section.

Per FR-API-TASK-014: Move task to section endpoint.

Attributes: section_gid: GID of the target section. project_gid: GID of the project containing the section.

object
section_gid
required
Section Gid

Target section GID

string
>= 1 characters
project_gid
required
Project Gid

Project GID containing section

string
>= 1 characters

Successful Response

SuccessResponse[AsanaResource]
object
data
required
AsanaResource

Response data payload

object
gid
required
Gid

Globally unique Asana resource identifier

string
resource_type
Any of:
string
name
Any of:
string
key
additional properties
any
meta
required
ResponseMeta

Response metadata

object
request_id
required
Request Id

Request correlation ID

string
>= 1 characters
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).

object
limit
required
Limit

Number of items per page

integer
>= 1
has_more
required
Has More

Whether more items exist

boolean
next_offset
Any of:
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string