---
search:
  tags:
    - Business controls
    - PUT
seo:
  description: >-
    Owner administration or the explicitly assigned business permission is…
    Reference for the PUT /api/v1/security/policy endpoint in the PharmaFlow
    API.
sidebar:
  label: PUT /policy
  badge: PUT
title: PUT /policy
type: openapi-operation
---
Owner administration or the explicitly assigned business permission is required. Actions are scoped to the signed-in branch. A request cannot be approved by its creator. Locked sessions return 423.

`PUT /api/v1/security/policy`

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

- `idle_minutes` (integer, required)

Request body example:

```json
{
  "idle_minutes": 1
}
```

**Responses**

- `200` — Operation completed
- `201` — Record created
- `400` — Invalid request
- `401` — Session expired or revoked
- `403` — Permission denied or self-approval
- `409` — Record changed or no longer actionable
- `423` — Register locked
