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

# Update account inference policy

> Update the models an account allows and denies and its default model, replacing each key sent; returns the policy.

`updateAccountInferencePolicy(input: UpdateAccountInferencePolicyInput!): AccountInferencePolicy!`

Requires account.settings.manage.

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`UpdateAccountInferencePolicyInput!`](https://veryfront.com/docs/cloud/graphql/types/updateaccountinferencepolicyinput) | Yes |

## Input fields

### input

[`UpdateAccountInferencePolicyInput`](https://veryfront.com/docs/cloud/graphql/types/updateaccountinferencepolicyinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `accountId` | [`ID!`](https://veryfront.com/docs/cloud/graphql/types/id) | Yes | |
| `models` | [`ModelRuleInput`](https://veryfront.com/docs/cloud/graphql/types/modelruleinput) | No | |
| `defaultModel` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Default model of projects that set none. It must be allowed by the policy. Null uses the built-in default. |

## Response

Returns [`AccountInferencePolicy!`](https://veryfront.com/docs/cloud/graphql/types/accountinferencepolicy). Open the type for its fields and nested types.

| Field | Type | Description |
| - | - | - |
| `accountId` | [`ID!`](https://veryfront.com/docs/cloud/graphql/types/id) | |
| `models` | [`ModelRule!`](https://veryfront.com/docs/cloud/graphql/types/modelrule) | Models the account allows and denies. Every project of the account can only narrow them. |
| `defaultModel` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | Default 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](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
mutation UpdateAccountInferencePolicy($input: UpdateAccountInferencePolicyInput!) {
  updateAccountInferencePolicy(input: $input) {
    accountId
    defaultModel
  }
}
```

```json title="variables.json" theme={null}
{
  "input": {
    "accountId": "00000000-0000-4000-8000-000000000001"
  }
}
```

<details>
  <summary>Try this mutation</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Mutation

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.