Time & Attendance
Time Off
Decline a time off cancellation request
Changed onDecline a time off cancellation request.
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
| Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|
| Manage timeoffs (time_and_attendance) | - | Manage timeoffs (timeoff:write) |
post/v1/timeoff/{timeoff_id}/cancel-request/decline
Request
- Base URL: https://gateway.remote.com
- URL: https://gateway.remote.com/v1/timeoff/{timeoff_id}/cancel-request/decline
- 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
Request body
Example request
{
"decline_reason": "Business purposes"
}Response
Success
Example response
{
"data": {
"status": "ok"
}
}Changes
- info
removed
subschema #1subschema #2from the response bodyanyOflist 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
- info