---
title: "updateRepoCustomModel"
---

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

# updateRepoCustomModel

Path: Forge API › customModels

`PATCH /repos/{repo_id}/branches/{branch}/custom-models/{model_api_name}`

Rename a custom model, which moves its API name, so later requests address it by the new one, or name its primary field: the text, integer, picklist, or date field whose value names its records wherever they are referenced. A model starts with its first text field as its primary field. A change that leaves a policy reading a name or custom field the model no longer has is refused with SchemaChangeBreaksPolicy.

## Path parameters

- `repo_id` (`updateRepoCustomModel.path.repo_id`; string, required)
  - pattern: `^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `branch` (`updateRepoCustomModel.path.branch`; string, required)
  - minLength: `1`
- `model_api_name` (`updateRepoCustomModel.path.model_api_name`; string, required)
  - minLength: `1`

## Request body

_Required._

- `name` (`updateRepoCustomModel.name`; string, optional)
  - minLength: `1`
- `primary_field` (`updateRepoCustomModel.primary_field`; string, optional)
  - minLength: `1`

## Example request

```json
{
  "name": "string",
  "primary_field": "string"
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url '<base-url>/repos/<repo_id>/branches/<branch>/custom-models/<model_api_name>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "string",
  "primary_field": "string"
}
'
```

### TypeScript

```typescript
const url = '<base-url>/repos/<repo_id>/branches/<branch>/custom-models/<model_api_name>';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({name: 'string', primary_field: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/repos/<repo_id>/branches/<branch>/custom-models/<model_api_name>"

payload = {
    "name": "string",
    "primary_field": "string"
}
headers = {"Content-Type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

CustomModel

#### Example

```json
{
  "name": "string",
  "api_name": "string",
  "extension_id": "string",
  "extension_installation_id": "string",
  "fields": [
    {
      "id": "string",
      "name": "string",
      "api_name": "string",
      "type": "text",
      "options": [
        "string"
      ],
      "required": true,
      "unique": true,
      "target_repo_id": "string",
      "target_model_id": "string",
      "on_delete": "cascade",
      "default_value": {},
      "formula": "string",
      "target_model": "string",
      "filter": {
        "operators": [
          "eq"
        ],
        "sortable": true,
        "value_format": "string"
      }
    }
  ],
  "primary_field": "string",
  "id": "string",
  "id_prefix": "string"
}
```

- `name` (`updateRepoCustomModel.response.200.name`; string, required)
  - minLength: `1`
- `api_name` (`updateRepoCustomModel.response.200.api_name`; string, required)
  - minLength: `1`
- `extension_id` (`updateRepoCustomModel.response.200.extension_id`; any of, required)
  - any of the following: `ExtensionId`, `null`
- `extension_installation_id` (`updateRepoCustomModel.response.200.extension_installation_id`; any of, required)
  - any of the following: `ExtensionInstallationId`, `null`
- `fields` (`updateRepoCustomModel.response.200.fields`; array of object, required)
  - `id` (`updateRepoCustomModel.response.200.fields.id`; string, required)
    - pattern: `^field_[0-7][0-9a-hjkmnp-tv-z]{25}$`
  - `name` (`updateRepoCustomModel.response.200.fields.name`; string, required)
    - minLength: `1`
  - `api_name` (`updateRepoCustomModel.response.200.fields.api_name`; string, required)
    - minLength: `1`
  - `type` (`updateRepoCustomModel.response.200.fields.type`; string, required)
    - one of `"text"`, `"rich_text"`, `"integer"`, `"decimal"`, `"currency"`, `"percent"`, `"boolean"`, `"date"`, `"datetime"`, `"duration"`, `"picklist"`, `"multi_picklist"`, `"geo"`, `"reference"`, `"user"`, `"attachment"`, `"multi_attachment"`
  - `options` (`updateRepoCustomModel.response.200.fields.options`; any of, required)
    - any of the following: `array<string>`, `null`
  - `required` (`updateRepoCustomModel.response.200.fields.required`; boolean, required)
  - `unique` (`updateRepoCustomModel.response.200.fields.unique`; boolean, required)
  - `target_repo_id` (`updateRepoCustomModel.response.200.fields.target_repo_id`; any of, required)
    - any of the following: `RepoId`, `null`
  - `target_model_id` (`updateRepoCustomModel.response.200.fields.target_model_id`; any of, required)
    - any of the following: `TypeId`, `null`
  - `on_delete` (`updateRepoCustomModel.response.200.fields.on_delete`; any of, required)
    - any of the following:
      - `string`: one of `"cascade"`
      - `null`
  - `default_value` (`updateRepoCustomModel.response.200.fields.default_value`; any of, required)
    - any of the following: `Option 1`, `null`
  - `formula` (`updateRepoCustomModel.response.200.fields.formula`; any of, required)
    - any of the following: `string`, `null`
  - `target_model` (`updateRepoCustomModel.response.200.fields.target_model`; any of, required)
    - any of the following: `string`, `null`
  - `filter` (`updateRepoCustomModel.response.200.fields.filter`; object, required) — How a search takes this field: the operators its type takes, whether sort takes it, and the form its values are written in.
    - `operators` (`updateRepoCustomModel.response.200.fields.filter.operators`; array of string, required)
      - one of `"eq"`, `"ne"`, `"gt"`, `"gte"`, `"lt"`, `"lte"`, `"between"`, `"in"`, `"not_in"`, `"contains"`, `"not_contains"`, `"starts_with"`, `"ends_with"`, `"has_any"`, `"has_all"`, `"has_none"`, `"is_empty"`, `"is_not_empty"`, `"matches"`
    - `sortable` (`updateRepoCustomModel.response.200.fields.filter.sortable`; boolean, required)
    - `value_format` (`updateRepoCustomModel.response.200.fields.filter.value_format`; string, required)
- `primary_field` (`updateRepoCustomModel.response.200.primary_field`; any of, required)
  - any of the following: `string`, `null`
- `id` (`updateRepoCustomModel.response.200.id`; string, required)
  - pattern: `^custom_model_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `id_prefix` (`updateRepoCustomModel.response.200.id_prefix`; string, required)
  - minLength: `1`

### 400

InvalidRequest | RequestBodyTooDeep

#### Example

```json
{
  "_tag": "InvalidRequest",
  "part": "path",
  "issues": [
    {
      "path": [
        "string"
      ],
      "message": "string"
    }
  ]
}
```

Any of the following:

- `InvalidRequestEncoded`
  - `_tag` (`InvalidRequestEncoded._tag`; string, required)
    - one of `"InvalidRequest"`
  - `part` (`InvalidRequestEncoded.part`; string, required)
    - one of `"path"`, `"query"`, `"headers"`, `"body"`
  - `issues` (`InvalidRequestEncoded.issues`; array of object, required)
    - `path` (`InvalidRequestEncoded.issues.path`; array\<any of\>, required)
      - any of the following: `string`, `integer`
    - `message` (`InvalidRequestEncoded.issues.message`; string, required)
- `RequestBodyTooDeepEncoded`
  - `_tag` (`RequestBodyTooDeepEncoded._tag`; string, required)
    - one of `"RequestBodyTooDeep"`
  - `max_depth` (`RequestBodyTooDeepEncoded.max_depth`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`

### 401

InvalidCredentials

#### Example

```json
{
  "_tag": "InvalidCredentials"
}
```

- `_tag` (`updateRepoCustomModel.response.401._tag`; string, required)
  - one of `"InvalidCredentials"`

### 403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired

#### Example

```json
{
  "_tag": "Forbidden",
  "message": "string"
}
```

Any of the following:

- `ForbiddenEncoded`
  - `_tag` (`ForbiddenEncoded._tag`; string, required)
    - one of `"Forbidden"`
  - `message` (`ForbiddenEncoded.message`; string, required)
- `ForbiddenOriginEncoded`
  - `_tag` (`ForbiddenOriginEncoded._tag`; string, required)
    - one of `"ForbiddenOrigin"`
- `RequiresPersonalSessionEncoded`
  - `_tag` (`RequiresPersonalSessionEncoded._tag`; string, required)
    - one of `"RequiresPersonalSession"`
- `RunBranchRequiredEncoded`
  - `_tag` (`RunBranchRequiredEncoded._tag`; string, required)
    - one of `"RunBranchRequired"`
  - `branch` (`RunBranchRequiredEncoded.branch`; string, required)
    - minLength: `1`
  - `message` (`RunBranchRequiredEncoded.message`; string, required)

### 404

BranchNotFound | CustomModelNotFound | RepoNotFound

#### Example

```json
{
  "_tag": "BranchNotFound",
  "branch": "string"
}
```

Any of the following:

- `BranchNotFoundEncoded`
  - `_tag` (`BranchNotFoundEncoded._tag`; string, required)
    - one of `"BranchNotFound"`
  - `branch` (`BranchNotFoundEncoded.branch`; string, required)
    - minLength: `1`
- `CustomModelNotFoundEncoded`
  - `_tag` (`CustomModelNotFoundEncoded._tag`; string, required)
    - one of `"CustomModelNotFound"`
  - `api_name` (`CustomModelNotFoundEncoded.api_name`; string, required)
    - minLength: `1`
- `RepoNotFoundEncoded`
  - `_tag` (`RepoNotFoundEncoded._tag`; string, required)
    - one of `"RepoNotFound"`

### 409

InstalledSchemaReadOnly | SchemaChangeBreaksPolicy | RepoArchived

#### Example

```json
{
  "_tag": "InstalledSchemaReadOnly",
  "extension_installation_id": "string"
}
```

Any of the following:

- `InstalledSchemaReadOnlyEncoded`
  - `_tag` (`InstalledSchemaReadOnlyEncoded._tag`; string, required)
    - one of `"InstalledSchemaReadOnly"`
  - `extension_installation_id` (`InstalledSchemaReadOnlyEncoded.extension_installation_id`; string, required)
    - pattern: `^extension_installation_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `SchemaChangeBreaksPolicyEncoded`
  - `_tag` (`SchemaChangeBreaksPolicyEncoded._tag`; string, required)
    - one of `"SchemaChangeBreaksPolicy"`
  - `problems` (`SchemaChangeBreaksPolicyEncoded.problems`; array of object, required)
    - `severity` (`SchemaChangeBreaksPolicyEncoded.problems.severity`; string, required)
      - one of `"error"`, `"warning"`
    - `code` (`SchemaChangeBreaksPolicyEncoded.problems.code`; string, required)
      - one of `"syntax"`, `"unsupported"`, `"truthiness"`, `"duplicate"`, `"unknownModel"`, `"unknownField"`, `"unknownAction"`, `"unknownExtension"`, `"unknownTool"`, `"unknownWorkflow"`, `"unknownSchedule"`, `"unknownTrigger"`, `"unknownGroup"`, `"unknownRepo"`, `"notAReference"`, `"noRecord"`, `"crossRepo"`, `"repoAllow"`, `"orgActionInRepo"`, `"repoModelInOrgPolicy"`
    - `message` (`SchemaChangeBreaksPolicyEncoded.problems.message`; string, required)
    - `fix` (`SchemaChangeBreaksPolicyEncoded.problems.fix`; any of, required)
      - any of the following: `string`, `null`
    - `location` (`SchemaChangeBreaksPolicyEncoded.problems.location`; any of, required)
      - any of the following:
        - `object`
          - `line` (`SchemaChangeBreaksPolicyEncoded.problems.location.1.line`; integer, required)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
          - `column` (`SchemaChangeBreaksPolicyEncoded.problems.location.1.column`; integer, required)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
        - `null`
    - `policy` (`SchemaChangeBreaksPolicyEncoded.problems.policy`; any of, required)
      - any of the following: `string`, `null`
    - `statement` (`SchemaChangeBreaksPolicyEncoded.problems.statement`; any of, required)
      - any of the following: `integer`, `null`
    - `term` (`SchemaChangeBreaksPolicyEncoded.problems.term`; any of, required)
      - any of the following: `array<integer>`, `null`
- `RepoArchivedEncoded`
  - `_tag` (`RepoArchivedEncoded._tag`; string, required)
    - one of `"RepoArchived"`

### 413

WriteTooLarge | RequestBodyTooLarge

#### Example

```json
{
  "_tag": "WriteTooLarge",
  "message": "string"
}
```

Any of the following:

- `WriteTooLargeEncoded`
  - `_tag` (`WriteTooLargeEncoded._tag`; string, required)
    - one of `"WriteTooLarge"`
  - `message` (`WriteTooLargeEncoded.message`; string, required)
- `RequestBodyTooLargeEncoded`
  - `_tag` (`RequestBodyTooLargeEncoded._tag`; string, required)
    - one of `"RequestBodyTooLarge"`
  - `max_bytes` (`RequestBodyTooLargeEncoded.max_bytes`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`

### 422

InvalidCustomModel | WriteRefused

#### Example

```json
{
  "_tag": "InvalidCustomModel",
  "reason": "string"
}
```

Any of the following:

- `InvalidCustomModelEncoded`
  - `_tag` (`InvalidCustomModelEncoded._tag`; string, required)
    - one of `"InvalidCustomModel"`
  - `reason` (`InvalidCustomModelEncoded.reason`; string, required)
    - minLength: `1`
- `WriteRefusedEncoded`
  - `_tag` (`WriteRefusedEncoded._tag`; string, required)
    - one of `"WriteRefused"`
  - `violations` (`WriteRefusedEncoded.violations`; array of Violation, required)
    - every option has:
      - `field` (`<option>.field`; string, required)
        - minLength: `1`
    - any of the following, each adding:
      - `object` (`WriteRefusedEncoded.violations.1`)
        - `kind` (`WriteRefusedEncoded.violations.1.kind`; any of, required)
          - any of the following:
            - `string`: one of `"formula"`
        - `model` (`WriteRefusedEncoded.violations.1.model`; string, required)
          - minLength: `1`
        - `reason` (`WriteRefusedEncoded.violations.1.reason`; string, required)
          - minLength: `1`
        - `record_ids` (`WriteRefusedEncoded.violations.1.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.2`)
        - `kind` (`WriteRefusedEncoded.violations.2.kind`; any of, required)
          - any of the following:
            - `string`: one of `"custom_field"`
        - `model` (`WriteRefusedEncoded.violations.2.model`; string, required)
          - minLength: `1`
        - `reason` (`WriteRefusedEncoded.violations.2.reason`; string, required)
          - minLength: `1`
        - `record_ids` (`WriteRefusedEncoded.violations.2.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.3`)
        - `kind` (`WriteRefusedEncoded.violations.3.kind`; any of, required)
          - any of the following:
            - `string`: one of `"uncarried_value"`
        - `model` (`WriteRefusedEncoded.violations.3.model`; string, required)
          - minLength: `1`
        - `record_id` (`WriteRefusedEncoded.violations.3.record_id`; string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
        - `written_by` (`WriteRefusedEncoded.violations.3.written_by`; string, required)
          - one of `"ours"`, `"theirs"`
        - `value` (`WriteRefusedEncoded.violations.3.value`; unknown, required)
        - `reason` (`WriteRefusedEncoded.violations.3.reason`; string, required)
          - minLength: `1`
      - `object` (`WriteRefusedEncoded.violations.4`)
        - `kind` (`WriteRefusedEncoded.violations.4.kind`; any of, required)
          - any of the following:
            - `string`: one of `"record_reference"`
        - `model` (`WriteRefusedEncoded.violations.4.model`; string, required)
          - minLength: `1`
        - `record_id` (`WriteRefusedEncoded.violations.4.record_id`; string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
        - `referenced_model` (`WriteRefusedEncoded.violations.4.referenced_model`; any of, required)
          - any of the following: `string`, `null`
        - `referenced_record_id` (`WriteRefusedEncoded.violations.4.referenced_record_id`; string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.5`)
        - `kind` (`WriteRefusedEncoded.violations.5.kind`; any of, required)
          - any of the following:
            - `string`: one of `"reference_target"`
        - `model` (`WriteRefusedEncoded.violations.5.model`; string, required)
          - minLength: `1`
        - `target_model` (`WriteRefusedEncoded.violations.5.target_model`; any of, required)
          - any of the following: `string`, `null`
        - `record_ids` (`WriteRefusedEncoded.violations.5.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.6`)
        - `kind` (`WriteRefusedEncoded.violations.6.kind`; any of, required)
          - any of the following:
            - `string`: one of `"reference_field_target"`
        - `model` (`WriteRefusedEncoded.violations.6.model`; string, required)
          - minLength: `1`
        - `target_model` (`WriteRefusedEncoded.violations.6.target_model`; any of, required)
          - any of the following: `string`, `null`
        - `record_ids` (`WriteRefusedEncoded.violations.6.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.7`)
        - `kind` (`WriteRefusedEncoded.violations.7.kind`; any of, required)
          - any of the following:
            - `string`: one of `"unique"`
        - `model` (`WriteRefusedEncoded.violations.7.model`; string, required)
          - minLength: `1`
        - `record_ids` (`WriteRefusedEncoded.violations.7.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.8`)
        - `kind` (`WriteRefusedEncoded.violations.8.kind`; any of, required)
          - any of the following:
            - `string`: one of `"required"`
        - `model` (`WriteRefusedEncoded.violations.8.model`; string, required)
          - minLength: `1`
        - `record_ids` (`WriteRefusedEncoded.violations.8.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.9`)
        - `kind` (`WriteRefusedEncoded.violations.9.kind`; any of, required)
          - any of the following:
            - `string`: one of `"field_api_name"`
        - `model` (`WriteRefusedEncoded.violations.9.model`; string, required)
          - minLength: `1`
        - `api_name` (`WriteRefusedEncoded.violations.9.api_name`; string, required)
          - minLength: `1`
        - `record_ids` (`WriteRefusedEncoded.violations.9.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.10`)
        - `kind` (`WriteRefusedEncoded.violations.10.kind`; any of, required)
          - any of the following:
            - `string`: one of `"model_api_name"`
        - `model` (`WriteRefusedEncoded.violations.10.model`; string, required)
          - minLength: `1`
        - `api_name` (`WriteRefusedEncoded.violations.10.api_name`; string, required)
          - minLength: `1`
        - `record_ids` (`WriteRefusedEncoded.violations.10.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.11`)
        - `kind` (`WriteRefusedEncoded.violations.11.kind`; any of, required)
          - any of the following:
            - `string`: one of `"extension_name"`
        - `model` (`WriteRefusedEncoded.violations.11.model`; string, required)
          - minLength: `1`
        - `name` (`WriteRefusedEncoded.violations.11.name`; string, required)
          - minLength: `1`
        - `record_ids` (`WriteRefusedEncoded.violations.11.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.12`)
        - `kind` (`WriteRefusedEncoded.violations.12.kind`; any of, required)
          - any of the following:
            - `string`: one of `"extension_peer"`
        - `model` (`WriteRefusedEncoded.violations.12.model`; string, required)
          - minLength: `1`
        - `name` (`WriteRefusedEncoded.violations.12.name`; string, required)
          - minLength: `1`
        - `version` (`WriteRefusedEncoded.violations.12.version`; string, required)
          - minLength: `1`
        - `peer` (`WriteRefusedEncoded.violations.12.peer`; string, required)
          - minLength: `1`
        - `range` (`WriteRefusedEncoded.violations.12.range`; string, required)
          - minLength: `1`
        - `peer_version` (`WriteRefusedEncoded.violations.12.peer_version`; any of, required)
          - any of the following: `string`, `null`
        - `record_ids` (`WriteRefusedEncoded.violations.12.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.13`)
        - `kind` (`WriteRefusedEncoded.violations.13.kind`; any of, required)
          - any of the following:
            - `string`: one of `"attachment"`
        - `model` (`WriteRefusedEncoded.violations.13.model`; string, required)
          - minLength: `1`
        - `record_id` (`WriteRefusedEncoded.violations.13.record_id`; string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
        - `attachment_blob_id` (`WriteRefusedEncoded.violations.13.attachment_blob_id`; string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.14`)
        - `kind` (`WriteRefusedEncoded.violations.14.kind`; any of, required)
          - any of the following:
            - `string`: one of `"agent_skill"`
        - `model` (`WriteRefusedEncoded.violations.14.model`; string, required)
          - minLength: `1`
        - `reason` (`WriteRefusedEncoded.violations.14.reason`; string, required)
          - minLength: `1`
        - `record_ids` (`WriteRefusedEncoded.violations.14.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `object` (`WriteRefusedEncoded.violations.15`)
        - `kind` (`WriteRefusedEncoded.violations.15.kind`; any of, required)
          - any of the following:
            - `string`: one of `"tag_state"`
        - `reason` (`WriteRefusedEncoded.violations.15.reason`; string, required)
          - minLength: `1`
        - `record_ids` (`WriteRefusedEncoded.violations.15.record_ids`; array of string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`

### 429

RateLimited

#### Example

```json
{
  "_tag": "RateLimited"
}
```

- `_tag` (`updateRepoCustomModel.response.429._tag`; string, required)
  - one of `"RateLimited"`

### 500

RepoFailure

#### Example

```json
{
  "_tag": "RepoFailure",
  "reason": "string"
}
```

- `_tag` (`updateRepoCustomModel.response.500._tag`; string, required)
  - one of `"RepoFailure"`
- `reason` (`updateRepoCustomModel.response.500.reason`; string, required)

### 503

RepoBusy | SessionUnavailable | RateLimitUnavailable

#### Example

```json
{
  "_tag": "RepoBusy",
  "message": "string"
}
```

Any of the following:

- `RepoBusyEncoded`
  - `_tag` (`RepoBusyEncoded._tag`; string, required)
    - one of `"RepoBusy"`
  - `message` (`RepoBusyEncoded.message`; string, required)
- `SessionUnavailableEncoded`
  - `_tag` (`SessionUnavailableEncoded._tag`; string, required)
    - one of `"SessionUnavailable"`
- `RateLimitUnavailableEncoded`
  - `_tag` (`RateLimitUnavailableEncoded._tag`; string, required)
    - one of `"RateLimitUnavailable"`


Source: https://buildrforge.com/docs/api/update-repo-custom-model/index.md
