Update account inference policy

updateAccountInferencePolicy(input: UpdateAccountInferencePolicyInput!): AccountInferencePolicy!

Requires account.settings.manage.

Arguments

ArgumentTypeRequired
inputUpdateAccountInferencePolicyInput!Yes

Input fields

input

UpdateAccountInferencePolicyInput

FieldTypeRequiredDescription
accountIdID!Yes
modelsModelRuleInputNo
defaultModelStringNoDefault model of projects that set none. It must be allowed by the policy. Null uses the built-in default.

Response

Returns AccountInferencePolicy!. Open the type for its fields and nested types.

FieldTypeDescription
accountIdID!
modelsModelRule!Models the account allows and denies. Every project of the account can only narrow them.
defaultModelStringDefault model of projects that set none. Null uses the built-in default.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation UpdateAccountInferencePolicy($input: UpdateAccountInferencePolicyInput!) {
  updateAccountInferencePolicy(input: $input) {
    accountId
    defaultModel
  }
}
json
{
  "input": {
    "accountId": "00000000-0000-4000-8000-000000000001"
  }
}