# PUT /api/v1/ap-approval/approvers/{tier}

> Update approvers for a tier

- **Tag:** ap-approval
- **Operation ID:** `update_approvers_api_v1_ap_approval_approvers__tier__put`

## Description

Replace the approver list for a tier in the workflow graph.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Parameters

- `tier` (path, string, required)

## Request body

Schema: `SetApproversRequest`

- `user_ids` (array · string) — List of user UUIDs to set as approvers for the tier.

## Responses

### 200 — Successful Response

Schema: `ApproversResponse`

- `approvers` (object) — Approver user IDs grouped by tier ('ops', 'advisor', 'owner').

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 404 — Not Found - Resource does not exist

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

## Code samples

### cURL

```bash
curl -X PUT 'https://api.ondayzero.com/api/v1/ap-approval/approvers/{tier}' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "user_ids": []
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/ap-approval/approvers/{tier}', {
  method: 'PUT',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "user_ids": []
}),
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

payload = {
  "user_ids": []
}

response = httpx.put("https://api.ondayzero.com/api/v1/ap-approval/approvers/{tier}", headers=headers, json=payload)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/ap-approval/update-approvers
- OpenAPI slice: https://www.ondayzero.com/docs/reference/ap-approval/update-approvers/openapi.json
- Other endpoints in **ap-approval**: https://www.ondayzero.com/docs/reference/ap-approval
