# Set GitHub Actions permissions for an organization

From **GitHub v3 REST API**.

`PUT /orgs/{org}/actions/permissions`

Sets the GitHub Actions permissions policy for repositories and allowed actions in an organization.

If the organization belongs to an enterprise that has set restrictive permissions at the enterprise level, such as `allowed_actions` to `selected` actions, then you cannot override them for the organization.

You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.

## Parameters

### `org`

- Location: path
- Required: true
- Type: `string`

## Request body

- Required: true
### `application/json`

- Type: `object`

```json
{
  "allowed_actions": "selected",
  "enabled_repositories": "all"
}
```

```json
{"properties":{"allowed_actions":{"$ref":"#/components/schemas/allowed-actions"},"enabled_repositories":{"$ref":"#/components/schemas/enabled-repositories"}},"required":["enabled_repositories"],"type":"object"}
```

## Responses

### `204`

Response

## Request examples

### cURL

```shell
curl --request PUT \
  --url {protocol}://{hostname}/api/v3/orgs/{org}/actions/permissions \
  --header 'content-type: application/json' \
  --data '{
  "allowed_actions": "selected",
  "enabled_repositories": "all"
}'
```
