Example Usage
import { ScimGroupPolicyAssignmentResponse } from "@openrouter/sdk/models";
let value: ScimGroupPolicyAssignmentResponse = {
data: {
budget: "6f1c2d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f",
modelAvailability: null,
moderation: null,
rateLimit: null,
scimGroupId: "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
scimGroupMappingId: "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
workspaceId: "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
},
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
data | models.ScimGroupPolicyAssignment | ✔️ | Guardrail policy attached to a SCIM group mapping for each policy type, or null when none. Members receive the group policy unless they have a manual assignment or opted out; when a member is in several mapped groups, the most restrictive policy of each type applies, and when policies cannot be ranked against each other (for example, a daily and a monthly budget), the policy from the newest mapping applies. rate_limit is null unless capacity policies are enabled for the account (Enterprise-only feature with a custom plan). | { “budget”: “6f1c2d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f”, “model_availability”: null, “moderation”: null, “rate_limit”: null, “scim_group_id”: “2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e”, “scim_group_mapping_id”: “3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f”, “workspace_id”: “1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d” } |