---
title: "Update Approval Status"
method: PATCH
path: "/approvals/{id}"
tags: ["Approvals"]
---

# Update Approval Status

`PATCH /approvals/{id}`

## Request

- Base URL: `https://openapi.n3xt.io`
- URL: `https://openapi.n3xt.io/approvals/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/n3xt/apis/n3xt-api-documentation/docs/approvals/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update the status of an approval request by its ID.

## Path parameters

- `id` string, required

## Request body

- object: The request body containing the status update.
  - `status` 'approved' | 'declined', required

## Response `202`

The request was processed successfully.

- union
  - object
    - `status` string, required
  - ErrorResponse
    - `error` string, required

## Other responses

- `400`: Bad Request - Invalid request parameters.
- `401`: Unauthorized - Invalid or missing authentication token.
- `403`: Forbidden - Insufficient permissions to perform this action.
- `404`: Not Found - Requested resource was not found.
- `422`: Unprocessable Entity - Validation failed for the request body.
- `500`: Internal Server Error - An unexpected error occurred while processing the request.

---

[API](https://skmtc.dev/n3xt/apis/n3xt-api-documentation.md) - [All operations](https://skmtc.dev/n3xt/apis/n3xt-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/n3xt/apis/n3xt-api-documentation/revisions/c634c45cd5b4?raw)
