---
search:
  tags:
    - Ops
    - PUT
seo:
  description: >-
    Admin only. Moves a pending approval to approved or rejected and stamps…
    Reference for the PUT /api/v1/approvals/{approvalId} endpoint in the
    PharmaFlow API.
sidebar:
  label: Approve or reject an approval
  badge: PUT
title: Approve or reject an approval
type: openapi-operation
---
Admin only. Moves a pending approval to approved or rejected and stamps the admin. The status must be one of those two, so an approval cannot return to pending or a fake state.

`PUT /api/v1/approvals/{approvalId}`

**Request body** (`application/json`, required)

- `status` (string, required)

Request body example:

```json
{
  "status": "string"
}
```

**Responses**

- `200` — Approval decided
- `400` — status must be approved or rejected
- `401` — Not authenticated
- `403` — Caller is not an admin

Response example, 200:

```json
{
  "id": "string",
  "branch_id": "string",
  "kind": "string",
  "reference_id": "string",
  "requested_by": "string",
  "approved_by": "string",
  "status": "string",
  "reason": "string",
  "created_at": "string"
}
```
