Update a section
PUT
/sections/{section_gid}
Sections
the URL for that project. Only the fields provided in the
data
blockwill be updated; any unspecified fields will remain unchanged. (note that
at this time, the only field that can be updated is the
name
field.)to change, or else you may overwrite changes made by another user since
you last retrieved the task.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://app.asana.com/api/1.0/sections/' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"insert_after": "987654",
"insert_before": "86420",
"name": "Next Actions",
"project": "13579"
}
}'
Response Response Example
200 - Example 1
{
"data": {
"gid": "12345",
"resource_type": "task",
"name": "Next Actions",
"created_at": "2012-02-22T02:06:58.147Z",
"project": {
"gid": "12345",
"resource_type": "task",
"name": "Stuff to buy"
},
"projects": [
{
"gid": "12345",
"resource_type": "task",
"name": "Stuff to buy"
}
]
}
}
Request
Path Params
section_gid
string
required
Body Params application/json
Responses
Modified at 2022-09-13 02:00:31