Skip to content

Commit 4437598

Browse files
Automated build docs: 2025-12-16 14:28:58
1 parent 172bfcd commit 4437598

File tree

3 files changed

+746
-0
lines changed

3 files changed

+746
-0
lines changed

defs/asana_oas.yaml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9199,6 +9199,30 @@ components:
91999199
type: string
92009200
format: date
92019201
example: '2025-01-12'
9202+
UpdateTimesheetApprovalStatusRequest:
9203+
type: object
9204+
required:
9205+
- approval_status
9206+
description: A request to update a timesheet approval status.
9207+
properties:
9208+
approval_status:
9209+
description: >-
9210+
The desired approval status to transition to. Valid transitions depend
9211+
on
9212+
the current status of the timesheet approval status.
9213+
type: string
9214+
enum:
9215+
- SUBMITTED
9216+
- DRAFT
9217+
- APPROVED
9218+
- REJECTED
9219+
example: SUBMITTED
9220+
message:
9221+
description: >-
9222+
Optional message to include with the transition (e.g., reason for approval
9223+
or rejection).
9224+
type: string
9225+
example: Approved by manager
92029226
TimesheetApprovalStatusCompact:
92039227
description: >-
92049228
A *timesheet approval status* object represents the approval status for a
@@ -55088,6 +55112,82 @@ paths:
5508855112
- personalAccessToken: []
5508955113
- oauth2:
5509055114
- timesheet_approval_statuses:read
55115+
put:
55116+
summary: Update a timesheet approval status
55117+
description: |-
55118+
<b>Required scope: </b><code>timesheet_approval_statuses:read</code>
55119+
55120+
Updates the approval status of a timesheet approval status. The update supports state transitions such as submitting, recalling submission, approving, and rejecting. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged. Invalid transitions will result in a 400 error.
55121+
tags:
55122+
- Timesheet approval statuses
55123+
operationId: updateTimesheetApprovalStatus
55124+
parameters:
55125+
- name: opt_fields
55126+
in: query
55127+
description: This endpoint returns a resource which excludes some properties
55128+
by default. To include those optional properties, set this query parameter
55129+
to a comma-separated list of the properties you wish to include.
55130+
required: false
55131+
example:
55132+
- approval_status
55133+
- created_at
55134+
- end_date
55135+
- start_date
55136+
- user
55137+
- user.name
55138+
- workspace
55139+
- workspace.name
55140+
schema:
55141+
type: array
55142+
items:
55143+
type: string
55144+
enum:
55145+
- approval_status
55146+
- created_at
55147+
- end_date
55148+
- start_date
55149+
- user
55150+
- user.name
55151+
- workspace
55152+
- workspace.name
55153+
style: form
55154+
explode: false
55155+
requestBody:
55156+
description: The fields to update on the timesheet approval status.
55157+
required: true
55158+
content:
55159+
application/json:
55160+
schema:
55161+
type: object
55162+
properties:
55163+
data:
55164+
$ref: '#/components/schemas/UpdateTimesheetApprovalStatusRequest'
55165+
responses:
55166+
200:
55167+
description: Successfully updated the requested timesheet approval status.
55168+
content:
55169+
application/json:
55170+
schema:
55171+
type: object
55172+
properties:
55173+
data:
55174+
$ref: '#/components/schemas/TimesheetApprovalStatusResponse'
55175+
400:
55176+
$ref: '#/components/responses/BadRequest'
55177+
401:
55178+
$ref: '#/components/responses/Unauthorized'
55179+
402:
55180+
$ref: '#/components/responses/PaymentRequired'
55181+
403:
55182+
$ref: '#/components/responses/Forbidden'
55183+
404:
55184+
$ref: '#/components/responses/NotFound'
55185+
500:
55186+
$ref: '#/components/responses/InternalServerError'
55187+
security:
55188+
- personalAccessToken: []
55189+
- oauth2:
55190+
- timesheet_approval_statuses:read
5509155191
/timesheet_approval_statuses:
5509255192
parameters:
5509355193
- $ref: '#/components/parameters/pretty'

0 commit comments

Comments
 (0)