# Set an organisation's approval settings

> Page: https://docs.plotwork.dev/api/put-orgs-org-approval. Index of every page: https://docs.plotwork.dev/llms.txt

"Publishing needs approval" (off, chosen folders, or all) holds a publish by anyone who is not an approver until an approver decides; "Public sharing needs approval" holds a public link.

`PUT /orgs/{org}/approval`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | Set an organisation's approval settings. |
| What does it take? | A JSON body of type [`SetOrganisationApprovalBody`](https://docs.plotwork.dev/api/schemas.md#setorganisationapprovalbody). |
| What does it return? | Status 200 with a body of type [`OrganisationApproval`](https://docs.plotwork.dev/api/schemas.md#organisationapproval). |
| What can go wrong? | `400` the body is not valid; `401` not signed in; `403` only the owner or an admin may change them (orgs.forbidden), or the request came from an origin that may not make changes; `404` no such organisation, or the caller is not a member of it; `422` a folder cannot be used, no folder was chosen for `folders`, or someone chosen is not a member with the member role (validation.failed); `429` too many requests; `503` organisations are not set up on this server. Every failure uses the one error envelope. |

## What it does

"Publishing needs approval" (off, chosen folders, or all) holds a publish by anyone who is not an approver until an approver decides; "Public sharing needs approval" holds a public link. The owner and admins approve, and the members chosen here. The owner or an admin.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `org` | `string` | yes | The organisation's id or its slug. |

## Request body

The body has the type [`SetOrganisationApprovalBody`](https://docs.plotwork.dev/api/schemas.md#setorganisationapprovalbody).

| Field | Type | Required | Description |
|---|---|---|---|
| `publish` | `"off" \| "folders" \| "all"` | yes |  |
| `folders` | `string[]` | yes |  |
| `share` | `boolean` | yes |  |
| `holdKeys` | `boolean` | no | Only the owner may change it; left out, it stays as it is. |
| `approvers` | `string[]` | yes | Account ids of members with the member role, at most 50. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | The settings now. | [`OrganisationApproval`](https://docs.plotwork.dev/api/schemas.md#organisationapproval) |
| 400 | The body is not valid. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 401 | Not signed in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 403 | Only the owner or an admin may change them (orgs.forbidden), or the request came from an origin that may not make changes. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 404 | No such organisation, or the caller is not a member of it. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 422 | A folder cannot be used, no folder was chosen for `folders`, or someone chosen is not a member with the member role (validation.failed). | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 503 | Organisations are not set up on this server. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 200 answer has the type [`OrganisationApproval`](https://docs.plotwork.dev/api/schemas.md#organisationapproval).

| Field | Type | Required | Description |
|---|---|---|---|
| `publish` | `"off" \| "folders" \| "all"` | yes |  |
| `folders` | `string[]` | yes | The folders "Publishing needs approval" covers when it is `folders`. |
| `share` | `boolean` | yes |  |
| `holdKeys` | `boolean` | yes | "Hold organisation keys for approval too": while false, a publish or a new version made with an organisation key from the Keys tab goes in directly. An agent connection is held as its person is. The owner's setting. |
| `approvers` | `array \| null` | yes | The members chosen to approve besides the owner and the admins. Null for a caller who may not manage them. |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
