Create a tag in a workspace
POST
/workspaces/{workspace_gid}/tags
Tags
organization, and this cannot be changed once set. Note that you can use
the workspace parameter regardless of whether or not it is an
organization.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.asana.com/api/1.0/workspaces//tags' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"name": "Stuff to buy",
"color": "light-green",
"workspace": {
"name": "My Company Workspace"
}
}
}'
Response Response Example
201 - Example 1
{
"data": {
"gid": "12345",
"resource_type": "task",
"name": "Stuff to buy",
"color": "light-green",
"followers": [
{
"gid": "12345",
"resource_type": "task",
"name": "Greg Sanchez"
}
],
"permalink_url": "https://app.asana.com/0/resource/123456789/list",
"workspace": {
"gid": "12345",
"resource_type": "task",
"name": "My Company Workspace"
}
}
}
Request
Path Params
workspace_gid
string
required
Body Params application/json
Responses
Modified at 2022-09-13 02:00:32