Rates
Create a rate
Creates a new rate for a parent + resource combination.
post/rates
Request
- Base URL: https://app.asana.com/api/1.0
- URL: https://app.asana.com/api/1.0/rates
- 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)
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": {
"gid": "12345",
"resource_type": "task",
"parent": "12345",
"resource": "12345",
"rate": 100
}
}Response
Successfully created a new rate.
Example response
{
"data": {
"gid": "12345",
"resource_type": "rate",
"parent": {
"gid": "12345",
"resource_type": "project",
"name": "Stuff to buy",
"resource_subtype": "default_project"
},
"resource": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"rate": 100,
"currency_code": "USD",
"created_by": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
}
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.