> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateModelAvailabilityGuardrailPolicyRequest

## Example Usage

```typescript theme={null}
import { CreateModelAvailabilityGuardrailPolicyRequest } from "@openrouter/sdk/models";

let value: CreateModelAvailabilityGuardrailPolicyRequest = {
  config: {},
  name: "Engineering monthly budget",
  policyType: "model_availability",
  workspaceId: "0df9e665-d932-5740-b2c7-b52af166bc11",
};
```

## Fields

| Field | Type | Required | Description | Example |
| - | - | - | - | - |
| `apiKeyHashes` | *string*\[] | ➖ | API key hashes | \[ "c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93" ] |
| `config` | [models.GuardrailModelAvailabilityPolicyAuthoringConfig](../models/guardrailmodelavailabilitypolicyauthoringconfig.mdx) | ✔️ | N/A | \{ "allowed\_models": \[ "openai/gpt-4o", "anthropic/claude-sonnet-4" ], "allowed\_providers": \[ "openai", "anthropic" ], "enforce\_zdr\_anthropic": true, "enforce\_zdr\_openai": true } |
| `isWorkspaceDefault` | *boolean* | ➖ | Make this the workspace default for its policy type. Defaults to `false`. | |
| `memberIds` | *string*\[] | ➖ | Organization member user IDs | \[ "user\_2abcDEFghiJKLmnoPQRstu" ] |
| `name` | *string* | ✔️ | Policy name | Engineering monthly budget |
| `optedOutApiKeyHashes` | *string*\[] | ➖ | API keys that should not inherit the policy when it is the workspace default | \[ "c56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93" ] |
| `optedOutMemberIds` | *string*\[] | ➖ | Members that should not inherit the policy when it is the workspace default | \[ "user\_2abcDEFghiJKLmnoPQRstu" ] |
| `policyType` | [models.CreateModelAvailabilityGuardrailPolicyRequestPolicyType](../models/createmodelavailabilityguardrailpolicyrequestpolicytype.mdx) | ✔️ | N/A | |
| `workspaceId` | *string* | ✔️ | Workspace the policy belongs to | 0df9e665-d932-5740-b2c7-b52af166bc11 |
