---
title: "Update a model availability policy"
method: PUT
path: "/guardrails/policies/model-availability/{id}"
tags: ["Guardrail Policies"]
---

# Update a model availability policy

`PUT /guardrails/policies/model-availability/{id}`

## Request

- Base URL: `https://openrouter.ai/api/v1`
- URL: `https://openrouter.ai/api/v1/guardrails/policies/model-availability/{id}`
- Auth: HTTP bearer

Replace a model availability policy's name and config, and optionally its assignments. [Management key](/docs/guides/overview/auth/management-api-keys) required.

## Path parameters

- `id` string, uuid, required: Policy ID

## Request body

- UpdateModelAvailabilityGuardrailPolicyRequest
  - `api_key_hashes` string[]: Complete new list of assigned API keys. Send together with `member_ids`, or omit both to keep the stored assignments.
  - `config` GuardrailModelAvailabilityPolicyAuthoringConfig, required
    - `allow_provisional_providers` boolean, nullable
    - `allow_safety_retention_google` boolean, nullable
    - `allow_safety_retention_openai` boolean, nullable
    - `allow_safety_retention_other` boolean, nullable
    - `allowed_data_regions` string[], nullable
    - `allowed_models` string[], nullable
    - `allowed_providers` string[], nullable
    - `enable_free_model_publication` boolean, nullable
    - `enable_free_model_training` boolean, nullable
    - `enable_paid_model_training` boolean, nullable
    - `enforce_first_party_harness_models` boolean, nullable
    - `enforce_zdr` boolean, nullable
    - `enforce_zdr_anthropic` boolean, nullable
    - `enforce_zdr_google` boolean, nullable
    - `enforce_zdr_openai` boolean, nullable
    - `enforce_zdr_other` boolean, nullable
    - `enforce_zdr_xai` boolean, nullable
    - `ignored_models` string[], nullable
    - `ignored_providers` string[], nullable
    - `platform_banned_authors` string[], nullable
    - `platform_banned_models` string[], nullable
    - `platform_banned_providers` string[], nullable
    - `require_eu_data_region` boolean, nullable
  - `is_workspace_default` boolean: Omit to keep the stored default status; `false` unsets the policy as the workspace default.
  - `member_ids` string[]: Complete new list of assigned members. Send together with `api_key_hashes`, or omit both to keep the stored assignments.
  - `name` string, required: Policy name
  - `opted_out_api_key_hashes` string[]: API key hashes
  - `opted_out_member_ids` string[]: Organization member user IDs
  - `workspace_id` string, uuid: Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.

## Response `200`

model availability policy updated

- ModelAvailabilityGuardrailPolicyResponse
  - `data` ModelAvailabilityGuardrailPolicy, required
    - `config` GuardrailModelAvailabilityPolicyConfig, required
      - `allow_provisional_providers` boolean, nullable
      - `allow_safety_retention_google` boolean, nullable
      - `allow_safety_retention_openai` boolean, nullable
      - `allow_safety_retention_other` boolean, nullable
      - `allowed_data_regions` string[], nullable
      - `allowed_models` string[], nullable
      - `allowed_providers` string[], nullable
      - `enable_free_model_publication` boolean, nullable
      - `enable_free_model_training` boolean, nullable
      - `enable_paid_model_training` boolean, nullable
      - `enforce_first_party_harness_models` boolean, nullable
      - `enforce_zdr` boolean, nullable
      - `enforce_zdr_anthropic` boolean, nullable
      - `enforce_zdr_google` boolean, nullable
      - `enforce_zdr_openai` boolean, nullable
      - `enforce_zdr_other` boolean, nullable
      - `enforce_zdr_xai` boolean, nullable
      - `ignored_models` string[], nullable
      - `ignored_providers` string[], nullable
      - `platform_banned_authors` string[], nullable
      - `platform_banned_models` string[], nullable
      - `platform_banned_providers` string[], nullable
      - `require_eu_data_region` boolean, nullable
    - `id` string, uuid, required: Policy ID
    - `name` string, required: Policy name
    - `policy_type` 'model_availability', required

## Other responses

- `400`: Bad Request - Invalid request parameters or malformed input
- `401`: Unauthorized - Authentication required or invalid credentials
- `403`: Forbidden - Authentication successful but insufficient permissions
- `404`: Not Found - Resource does not exist
- `409`: Conflict - Resource conflict or concurrent modification
- `500`: Internal Server Error - Unexpected server error

## Changes

- **2026-11-24** `3fc38b061734`: 2 info
  - added the new optional request property `config/allow_safety_retention_openai`
  - added the optional property `data/config/allow_safety_retention_openai` to the response with the `200` status
- **2026-11-23** `c5f9c8b37e97`: 2 info
  - added the new optional request property `config/allow_provisional_providers`
  - added the optional property `data/config/allow_provisional_providers` to the response with the `200` status
- **2026-11-11** `5aee117d1dca`: 1 info
  - the request property `workspace_id` became optional
- **2026-11-06** `02121928ccaf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openrouterteam/apis/openrouter-api/changes/guardrails/policies/model-availability/:id/put.md)

---

[API](https://skmtc.dev/openrouterteam/apis/openrouter-api.md) - [All operations](https://skmtc.dev/openrouterteam/apis/openrouter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openrouterteam/apis/openrouter-api/revisions/f797e38f23b4?raw)
