Time & Attendance
Time Off

Approve a time off cancellation request

Changed on

Approve a time off cancellation request. In order to approve a time off cancellation request, the timeoff status must be cancel_requested.

Authentication

This endpoint accepts any one of the following token types:

  • Company-scoped access token (OAuth2AuthorizationCode) — obtained through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
  • Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page. See Authorization for customers.

Scopes

CategoryRead only ScopeWrite only Scope (read access implicit)
Manage timeoffs (time_and_attendance)-Manage timeoffs (timeoff:write)
post/v1/timeoff/{timeoff_id}/cancel-request/approve

Request

  • Base URL: https://gateway.remote.com
  • URL: https://gateway.remote.com/v1/timeoff/{timeoff_id}/cancel-request/approve
  • Auth: HTTP bearer and OAuth 2 (authorization code, authorization URL /auth/oauth2/authorize, token URL /auth/oauth2/token, scopes: https://gateway.remote.com/company.manage, timeoff:write, time_and_attendance, all:write)

Path parameters

timeoff_idstring required

Time Off ID

Response

Success

Example response

{
  "data": {
    "status": "ok"
  }
}

Changes

    • info

      removed subschema #1 subschema #2 from the response body anyOf list for the response status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status