POST /timesheet_approval_statuses
Required scope: timesheet_approval_statuses:write
Creates a new timesheet approval status for a user's timesheet week. The start_date must be a Monday and end_date must be the following Sunday. Returns the created timesheet approval status record.
Servers
- https://app.asana.com/api/1.0
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
opt_pretty |
Boolean | No |
Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. |
opt_fields[] |
Array | No |
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. |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
data |
Object | No |
A request to create a timesheet approval status. |
data.start_date |
String | Yes |
The start date of the timesheet week (must be a Monday). |
data.end_date |
String | Yes |
The end date of the timesheet week (must be the following Sunday). |
data.user |
String | Yes |
Globally unique identifier for the user whose timesheet this is. |
data.workspace |
String | Yes |
Globally unique identifier for the workspace. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.