# Reject a time off request

Source: https://www.supervisible.com/developers/time-off/post-time-off-id-reject

POST /time-off/{request_id}/reject



## POST /time-off/{request_id}/reject

Requires manager/admin approval permissions for the requesting user.

Base URL: https://app.supervisible.com/api/v1

Required scope: write:time_off

## Operation contract

The definition below includes parameters, request bodies, response schemas, examples and authentication requirements.

```json
{
  "summary": "Reject a time off request",
  "description": "Requires manager/admin approval permissions for the requesting user.",
  "tags": [
    "time-off"
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-required-scope": "write:time_off",
  "parameters": [
    {
      "in": "path",
      "name": "request_id",
      "required": true,
      "description": "Time off request ID.",
      "schema": {
        "type": "string",
        "description": "UUID"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "rejectionReason": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "required": [
            "rejectionReason"
          ],
          "additionalProperties": false,
          "example": {
            "rejectionReason": "Coverage needed this week"
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Successful response",
      "content": {
        "application/json": {
          "example": {
            "data": {
              "rejectionReason": "Coverage needed this week"
            }
          }
        }
      }
    },
    "400": {
      "description": "Invalid request"
    },
    "401": {
      "description": "Unauthorized"
    },
    "403": {
      "description": "Missing required scope or current member permission"
    },
    "404": {
      "description": "Not found"
    },
    "409": {
      "description": "Conflict; refresh current state and preview again"
    },
    "429": {
      "description": "Rate limited; honor Retry-After"
    }
  }
}
```

## Referenced definitions

```json
{
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API Key"
      }
    }
  }
}
```

[Complete OpenAPI specification](https://www.supervisible.com/openapi/public-api-v1.json)
