# PUT /orgs/{org}/actions/policies/{policy_id} (GitHub API)
Base URL: https://api.github.com
Auth: Authorization; GitHub token; required.
Request formats: application/json.
Last verified: 2026-09-18

> Update an organization Actions policy

## Critical Gotchas
* GitHub recommends an `Accept: application/vnd.github+json` header and an explicit `X-GitHub-Api-Version` header.
* Fine-grained tokens only authorize repositories and permissions selected when the token is created.

## cURL
curl -X PUT 'https://api.github.com/orgs/example-org/actions/policies/10' \
  -H "Authorization: Bearer $GITHUB_TOKEN" \
  -H 'Accept: application/vnd.github+json' \
  -H 'X-GitHub-Api-Version: 2026-03-10' \
  -H 'Content-Type: application/json' \
  -d '{}'

## Parameters
| Name | In | Type | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| org | path | string | Yes | The organization name. The name is not case sensitive. |
| policy_id | path | integer | Yes | The ID of the policy. |
| name | body | string | No | The name of the policy. |
| enforcement | body | string | No | The enforcement level of the ruleset. `evaluate` allows admins to test rules... |
| conditions | body | object | No | Conditions for an organization Actions policy. The conditions object should c... |
| rules | body | object[] | No | An array of rules within the policy. |

## Response example
{"id":0,"name":"string"}

---
Need an API key? Get one at https://github.com/settings/tokens