# Set GitHub Actions permissions for an enterprise

From **GitHub v3 REST API**.

`PUT /enterprises/{enterprise}/actions/permissions`

Sets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise.

You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.

## Parameters

### `enterprise`

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

The slug version of the enterprise name. You can also substitute this value with the enterprise id.

## Request body

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

- Type: `object`

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

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

## Responses

### `204`

Response

## Request examples

### cURL

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