Changes the audit status. The status determines whether the stock is adjusted at the storage location.

```
v1/audits/update_status.php
```

## Parameters

| Field | Type | Required | Description |
|---|---|---|---|
| audit_id | int | Yes | Audit ID |
| status | int | Yes | New status: **0** — Planned, **1** — Completed |

## Example request

```
{
    "audit_id": 1699,
    "status": 1
}
```

## Example response

```
{
    "success": true
}
```

## Errors

| Error | Reason |
|---|---|
| No audit_id in input | A required field is missing (instead of audit_id, the field's name) |
| Invalid status value. Must be one of: 0, 1 | Invalid status code |
| Audit not found or access denied | Audit not found or deleted |
