---
title: "Update organization's authorization policy"
method: PUT
path: "/orgs/{orgName}/authorization-policy"
tags: ["Organizations"]
---

# Update organization's authorization policy

`PUT /orgs/{orgName}/authorization-policy`

## Request

- Base URL: `https://artifacthub.io/api/v1`
- URL: `https://artifacthub.io/api/v1/orgs/{orgName}/authorization-policy`
- Auth: API key in header `X-API-KEY-ID` and API key in header `X-API-KEY-SECRET`
- TypeScript: <https://skmtc.dev/artifacthub/apis/artifact-hub/docs/orgs/:orgName/authorization-policy/put.ts> (a function with typed inputs; its response is checked against the schema)

Update organization's authorization policy

## Path parameters

- `orgName` string, required

## Request body

- AuthorizationPolicy
  - `authorization_enabled` boolean, required
  - `predefined_policy` string
  - `custom_policy` string
  - `policy_data` string

## Response `204`

The request has succeeded, no content returned

## Other responses

- `400`: The request sent was not valid
- `401`: Valid authentication credentials not provided
- `403`: The user does not have permission to perform the requested operation
- `429`: The user has sent too many requests in a given amount of time
- `500`: The server encountered an unexpected condition that prevented it from fulfilling the request

---

[API](https://skmtc.dev/artifacthub/apis/artifact-hub.md) - [All operations](https://skmtc.dev/artifacthub/apis/artifact-hub/llms.txt) - [OpenAPI document](https://skmtc.dev/artifacthub/apis/artifact-hub/revisions/d2e9234264b1?raw)
