Time tracking categories
Create a time tracking category
<b>Required scope: </b><code>time_tracking_categories:write</code>
Creates a new time tracking category in a given workspace.
Returns the record of the newly created time tracking category.
post/time_tracking_categories
Request
- Base URL: https://app.asana.com/api/1.0
- URL: https://app.asana.com/api/1.0/time_tracking_categories
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.asana.com/-/oauth_authorize, token URL https://app.asana.com/-/oauth_token, scopes: time_tracking_categories:write)
Query parameters
opt_fieldsstring[]
This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include. Properties can include nested fields. To learn more, see the input/output options guide.
Request body
Example request
{
"data": {
"name": "Development",
"color": "blue",
"workspace": "12345"
}
}Response
Successfully created a time tracking category.
Example response
{
"data": {
"gid": "12345",
"resource_type": "time_tracking_category",
"name": "Development",
"color": "blue"
}
}Changes
No recorded changes to this operation across all 51 revisions of this API.