---
title: "Set default workflow permissions for an enterprise"
method: PUT
path: "/enterprises/{enterprise}/actions/permissions/workflow"
tags: ["actions"]
---

# Set default workflow permissions for an enterprise

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

Sets the default workflow permissions granted to the `GITHUB_TOKEN` when running workflows in an enterprise, and sets
whether GitHub Actions can submit approving pull request reviews. For more information, see
"[Enforcing a policy for workflow permissions in your enterprise](https://docs.github.com/enterprise-server@3.8/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise#enforcing-a-policy-for-workflow-permissions-in-your-enterprise)."

OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.

## Path parameters

- `enterprise` string, required

## Request body

- ActionsSetDefaultWorkflowPermissions
  - `default_workflow_permissions` 'read' | 'write' — The default workflow permissions granted to the GITHUB_TOKEN when running workflows.
  - `can_approve_pull_request_reviews` boolean — Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.

## Response `204`

Success response

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-7.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-7/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-7/versions/5438365412fe/schema)
