Module asana::apis::sections_api[][src]

Enums

AddTaskForSectionError

struct for typed errors of method add_task_for_section

CreateSectionForProjectError

struct for typed errors of method create_section_for_project

DeleteSectionError

struct for typed errors of method delete_section

GetSectionError

struct for typed errors of method get_section

GetSectionsForProjectError

struct for typed errors of method get_sections_for_project

InsertSectionForProjectError

struct for typed errors of method insert_section_for_project

UpdateSectionError

struct for typed errors of method update_section

Functions

add_task_for_section

Add a task to a specific, existing section. This will remove the task from other sections of the project. The task will be inserted at the top of a section unless an insert_before or insert_after parameter is declared. This does not work for separators (tasks with the resource_subtype of section).

create_section_for_project

Creates a new section in a project. Returns the full record of the newly created section.

delete_section

A specific, existing section can be deleted by making a DELETE request on the URL for that section. Note that sections must be empty to be deleted. The last remaining section cannot be deleted. Returns an empty data block.

get_section

Returns the complete record for a single section.

get_sections_for_project

Returns the compact records for all sections in the specified project.

insert_section_for_project

Move sections relative to each other. One of before_section or after_section is required. Sections cannot be moved between projects. Returns an empty data block.

update_section

A specific, existing section can be updated by making a PUT request on the URL for that project. Only the fields provided in the data block will be updated; any unspecified fields will remain unchanged. (note that at this time, the only field that can be updated is the name field.) When using this method, it is best to specify only those fields you wish to change, or else you may overwrite changes made by another user since you last retrieved the task. Returns the complete updated section record.