set_ai_policy
Replace the AI controls a workspace, project, group or member sets itself.
Project, group and member controls are an Enterprise feature. Read the scope with
get_ai_policy first and send back the whole policy with your change. Requires workspace
settings admin (content policy author for a project).
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
scoperequired | AiPolicyScopeToolInput | — | |
workspace_idrequired | string (uuid) | — | The workspace the policy belongs to. |
kindrequired | enum | — | What the policy is attached to: the workspace itself, one of its projects, a group or a member. One of: workspace, project, group, member |
project_id | string (uuid) | — | The project, for kind=project. |
group_id | string (uuid) | — | The group, for kind=group. Use list_groups to find it. |
member_email | string (email) | — | The member's email, for kind=member. |
principal_id | string (uuid) | — | The member's principal id, for kind=member: a service account or API key. |
policyrequired | AiPolicy | — | Everything the scope sets itself; it replaces what the scope set before. Leave a control out to inherit it. Each value is {value, locked}; only workspace and project policies lock. |
agent_enabled | Setting_bool_ | — | |
valuerequired | boolean | — | |
locked | boolean | false | |
agents | object | [object Object] | |
agent_confirm_above_cu | Setting_Annotated_float__Ge__ | — | |
valuerequired | number≥0 | — | |
locked | boolean | false | |
modalities | object | [object Object] | |
new_models_enabled | Setting_bool_ | — | |
valuerequired | boolean | — | |
locked | boolean | false | |
models | object | [object Object] | |
model_defaults | object | [object Object] | |
guardrails | object | [object Object] | |
output_scoring | object | [object Object] | |
nsfw_tolerance | Setting_Annotated_int__FieldInfo_annotation_NoneType__required_True__metadata__Ge_ge_1___Le_le_6_____ | — | |
valuerequired | integer1–6 | — | |
locked | boolean | false | |
reference_set_sharing_enabled | Setting_bool_ | — | |
valuerequired | boolean | — | |
locked | boolean | false | |
workflow_sharing_enabled | Setting_bool_ | — | |
valuerequired | boolean | — | |
locked | boolean | false | |
invisible_watermark_enabled | Setting_bool_ | — | |
valuerequired | boolean | — | |
locked | boolean | false | |
usage_caps | object | [object Object] |