---
title: "checkRepoBranchMerge"
---

> 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.

# checkRepoBranchMerge

Path: Forge API › branches

`POST /repos/{repo_id}/branches/{branch}/merge-check`

Check a merge without writing state; returns heads, conflicts, and violations.

## Path parameters

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

## Request body

_Required._

- `source_branch` (`checkRepoBranchMerge.source_branch`; string, required)
  - minLength: `1`

## Example request

```json
{
  "source_branch": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url '<base-url>/repos/<repo_id>/branches/<branch>/merge-check' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source_branch": "string"
}
'
```

### TypeScript

```typescript
const url = '<base-url>/repos/<repo_id>/branches/<branch>/merge-check';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({source_branch: '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>/merge-check"

payload = { "source_branch": "string" }
headers = {"Content-Type": "application/json"}

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

print(response.text)
```

## Responses

### 200

MergeCheck

#### Example

```json
{
  "heads": {
    "ours": "string",
    "theirs": "string"
  },
  "base_commit_id": "string",
  "fast_forward": true,
  "ready": true,
  "conflicts": [
    {
      "id": "string",
      "kind": "column",
      "model": "string",
      "record_id": "string",
      "field": "string",
      "values": {
        "base": null,
        "ours": null,
        "theirs": null
      },
      "records": {
        "base": {},
        "ours": {},
        "theirs": {}
      }
    }
  ],
  "violations": [
    {
      "kind": "formula",
      "model": "string",
      "field": "string",
      "reason": "string",
      "record_ids": [
        "string"
      ]
    }
  ]
}
```

- `heads` (`checkRepoBranchMerge.response.200.heads`; object, required)
  - `ours` (`checkRepoBranchMerge.response.200.heads.ours`; string, required)
    - pattern: `^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$`
  - `theirs` (`checkRepoBranchMerge.response.200.heads.theirs`; string, required)
    - pattern: `^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `base_commit_id` (`checkRepoBranchMerge.response.200.base_commit_id`; string, required)
  - pattern: `^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `fast_forward` (`checkRepoBranchMerge.response.200.fast_forward`; boolean, required)
- `ready` (`checkRepoBranchMerge.response.200.ready`; boolean, required)
- `conflicts` (`checkRepoBranchMerge.response.200.conflicts`; array\<any of\>, required)
  - every option has:
    - `id` (`<option>.id`; string, required)
      - minLength: `1`
  - any of the following, each adding:
    - `ColumnConflict`
      - `kind` (`ColumnConflict.kind`; any of, required)
        - any of the following:
          - `string`: one of `"column"`
      - `model` (`ColumnConflict.model`; string, required)
        - minLength: `1`
      - `record_id` (`ColumnConflict.record_id`; string, required)
        - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `field` (`ColumnConflict.field`; string, required)
        - minLength: `1`
      - `values` (`ColumnConflict.values`; object, required)
        - `base` (`ColumnConflict.values.base`; unknown, required)
        - `ours` (`ColumnConflict.values.ours`; unknown, required)
        - `theirs` (`ColumnConflict.values.theirs`; unknown, required)
      - `records` (`ColumnConflict.records`; object, required)
        - `base` (`ColumnConflict.records.base`; any of, required)
          - any of the following: `object`, `null`
        - `ours` (`ColumnConflict.records.ours`; any of, required)
          - any of the following: `object`, `null`
        - `theirs` (`ColumnConflict.records.theirs`; any of, required)
          - any of the following: `object`, `null`
    - `EditDeleteConflict`
      - `kind` (`EditDeleteConflict.kind`; any of, required)
        - any of the following:
          - `string`: one of `"edit_delete"`
      - `model` (`EditDeleteConflict.model`; string, required)
        - minLength: `1`
      - `record_id` (`EditDeleteConflict.record_id`; string, required)
        - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `edited_by` (`EditDeleteConflict.edited_by`; string, required)
        - one of `"ours"`, `"theirs"`
      - `records` (`EditDeleteConflict.records`; object, required)
        - `base` (`EditDeleteConflict.records.base`; any of, required)
          - any of the following: `object`, `null`
        - `ours` (`EditDeleteConflict.records.ours`; any of, required)
          - any of the following: `object`, `null`
        - `theirs` (`EditDeleteConflict.records.theirs`; any of, required)
          - any of the following: `object`, `null`
      - `disputed` (`EditDeleteConflict.disputed`; array of object, required)
        - `field` (`EditDeleteConflict.disputed.field`; string, required)
          - minLength: `1`
        - `values` (`EditDeleteConflict.disputed.values`; array of unknown, required)
      - `written_record_ids` (`EditDeleteConflict.written_record_ids`; array of string, required)
        - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `row_formulas` (`EditDeleteConflict.row_formulas`; array of object, required)
        - `field` (`EditDeleteConflict.row_formulas.field`; string, required)
          - minLength: `1`
        - `base` (`EditDeleteConflict.row_formulas.base`; array of string, required)
          - minLength: `1`
        - `ours` (`EditDeleteConflict.row_formulas.ours`; any of, required)
          - any of the following: `string`, `null`
        - `theirs` (`EditDeleteConflict.row_formulas.theirs`; any of, required)
          - any of the following: `string`, `null`
    - `DuplicateConflict`
      - `kind` (`DuplicateConflict.kind`; any of, required)
        - any of the following:
          - `string`: one of `"duplicate"`
      - `model` (`DuplicateConflict.model`; string, required)
        - minLength: `1`
      - `key` (`DuplicateConflict.key`; array of string, required)
        - minLength: `1`
      - `ours` (`DuplicateConflict.ours`; object, required)
        - `record_id` (`DuplicateConflict.ours.record_id`; string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
        - `record` (`DuplicateConflict.ours.record`; object, required)
      - `theirs` (`DuplicateConflict.theirs`; object, required)
        - `record_id` (`DuplicateConflict.theirs.record_id`; string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
        - `record` (`DuplicateConflict.theirs.record`; object, required)
    - `CustomFieldPairConflict`
      - `kind` (`CustomFieldPairConflict.kind`; any of, required)
        - any of the following:
          - `string`: one of `"custom_field_pair"`
      - `model` (`CustomFieldPairConflict.model`; string, required)
        - minLength: `1`
      - `api_name` (`CustomFieldPairConflict.api_name`; string, required)
        - minLength: `1`
      - `ours` (`CustomFieldPairConflict.ours`; object, required)
        - `id` (`CustomFieldPairConflict.ours.id`; string, required)
          - pattern: `^field_[0-7][0-9a-hjkmnp-tv-z]{25}$`
        - `name` (`CustomFieldPairConflict.ours.name`; string, required)
          - minLength: `1`
        - `api_name` (`CustomFieldPairConflict.ours.api_name`; string, required)
          - minLength: `1`
        - `type` (`CustomFieldPairConflict.ours.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` (`CustomFieldPairConflict.ours.options`; any of, required)
          - any of the following: `array<string>`, `null`
        - `required` (`CustomFieldPairConflict.ours.required`; boolean, required)
        - `unique` (`CustomFieldPairConflict.ours.unique`; boolean, required)
        - `target_repo_id` (`CustomFieldPairConflict.ours.target_repo_id`; any of, required)
          - any of the following: `RepoId`, `null`
        - `target_model_id` (`CustomFieldPairConflict.ours.target_model_id`; any of, required)
          - any of the following: `TypeId`, `null`
        - `on_delete` (`CustomFieldPairConflict.ours.on_delete`; any of, required)
          - any of the following:
            - `string`: one of `"cascade"`
            - `null`
        - `default_value` (`CustomFieldPairConflict.ours.default_value`; any of, required)
          - any of the following: `Option 1`, `null`
        - `target_model` (`CustomFieldPairConflict.ours.target_model`; any of, required)
          - any of the following: `string`, `null`
      - `theirs` (`CustomFieldPairConflict.theirs`; object, required)
        - `id` (`CustomFieldPairConflict.theirs.id`; string, required)
          - pattern: `^field_[0-7][0-9a-hjkmnp-tv-z]{25}$`
        - `name` (`CustomFieldPairConflict.theirs.name`; string, required)
          - minLength: `1`
        - `api_name` (`CustomFieldPairConflict.theirs.api_name`; string, required)
          - minLength: `1`
        - `type` (`CustomFieldPairConflict.theirs.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` (`CustomFieldPairConflict.theirs.options`; any of, required)
          - any of the following: `array<string>`, `null`
        - `required` (`CustomFieldPairConflict.theirs.required`; boolean, required)
        - `unique` (`CustomFieldPairConflict.theirs.unique`; boolean, required)
        - `target_repo_id` (`CustomFieldPairConflict.theirs.target_repo_id`; any of, required)
          - any of the following: `RepoId`, `null`
        - `target_model_id` (`CustomFieldPairConflict.theirs.target_model_id`; any of, required)
          - any of the following: `TypeId`, `null`
        - `on_delete` (`CustomFieldPairConflict.theirs.on_delete`; any of, required)
          - any of the following:
            - `string`: one of `"cascade"`
            - `null`
        - `default_value` (`CustomFieldPairConflict.theirs.default_value`; any of, required)
          - any of the following: `Option 1`, `null`
        - `target_model` (`CustomFieldPairConflict.theirs.target_model`; any of, required)
          - any of the following: `string`, `null`
    - `RemovedCustomFieldWriteConflict`
      - `kind` (`RemovedCustomFieldWriteConflict.kind`; any of, required)
        - any of the following:
          - `string`: one of `"removed_custom_field_write"`
      - `model` (`RemovedCustomFieldWriteConflict.model`; string, required)
        - minLength: `1`
      - `field` (`RemovedCustomFieldWriteConflict.field`; object, required)
        - `id` (`RemovedCustomFieldWriteConflict.field.id`; string, required)
          - pattern: `^field_[0-7][0-9a-hjkmnp-tv-z]{25}$`
        - `name` (`RemovedCustomFieldWriteConflict.field.name`; string, required)
          - minLength: `1`
        - `api_name` (`RemovedCustomFieldWriteConflict.field.api_name`; string, required)
          - minLength: `1`
        - `type` (`RemovedCustomFieldWriteConflict.field.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` (`RemovedCustomFieldWriteConflict.field.options`; any of, required)
          - any of the following: `array<string>`, `null`
        - `required` (`RemovedCustomFieldWriteConflict.field.required`; boolean, required)
        - `unique` (`RemovedCustomFieldWriteConflict.field.unique`; boolean, required)
        - `target_repo_id` (`RemovedCustomFieldWriteConflict.field.target_repo_id`; any of, required)
          - any of the following: `RepoId`, `null`
        - `target_model_id` (`RemovedCustomFieldWriteConflict.field.target_model_id`; any of, required)
          - any of the following: `TypeId`, `null`
        - `on_delete` (`RemovedCustomFieldWriteConflict.field.on_delete`; any of, required)
          - any of the following:
            - `string`: one of `"cascade"`
            - `null`
        - `default_value` (`RemovedCustomFieldWriteConflict.field.default_value`; any of, required)
          - any of the following: `Option 1`, `null`
        - `target_model` (`RemovedCustomFieldWriteConflict.field.target_model`; any of, required)
          - any of the following: `string`, `null`
      - `removed_by` (`RemovedCustomFieldWriteConflict.removed_by`; string, required)
        - one of `"ours"`, `"theirs"`
      - `written_record_ids` (`RemovedCustomFieldWriteConflict.written_record_ids`; array of string, required)
        - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `read_by` (`RemovedCustomFieldWriteConflict.read_by`; array of object, required)
        - `model` (`RemovedCustomFieldWriteConflict.read_by.model`; string, required)
          - minLength: `1`
        - `field` (`RemovedCustomFieldWriteConflict.read_by.field`; object, required)
          - `id` (`RemovedCustomFieldWriteConflict.read_by.field.id`; string, required)
            - pattern: `^field_[0-7][0-9a-hjkmnp-tv-z]{25}$`
          - `name` (`RemovedCustomFieldWriteConflict.read_by.field.name`; string, required)
            - minLength: `1`
          - `api_name` (`RemovedCustomFieldWriteConflict.read_by.field.api_name`; string, required)
            - minLength: `1`
          - `type` (`RemovedCustomFieldWriteConflict.read_by.field.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` (`RemovedCustomFieldWriteConflict.read_by.field.options`; any of, required)
            - any of the following: `array<string>`, `null`
          - `required` (`RemovedCustomFieldWriteConflict.read_by.field.required`; boolean, required)
          - `unique` (`RemovedCustomFieldWriteConflict.read_by.field.unique`; boolean, required)
          - `target_repo_id` (`RemovedCustomFieldWriteConflict.read_by.field.target_repo_id`; any of, required)
            - any of the following: `RepoId`, `null`
          - `target_model_id` (`RemovedCustomFieldWriteConflict.read_by.field.target_model_id`; any of, required)
            - any of the following: `TypeId`, `null`
          - `on_delete` (`RemovedCustomFieldWriteConflict.read_by.field.on_delete`; any of, required)
            - any of the following:
              - `string`: one of `"cascade"`
              - `null`
          - `default_value` (`RemovedCustomFieldWriteConflict.read_by.field.default_value`; any of, required)
            - any of the following: `Option 1`, `null`
          - `target_model` (`RemovedCustomFieldWriteConflict.read_by.field.target_model`; any of, required)
            - any of the following: `string`, `null`
        - `record_id` (`RemovedCustomFieldWriteConflict.read_by.record_id`; any of, required)
          - any of the following: `TypeId`, `null`
        - `formula` (`RemovedCustomFieldWriteConflict.read_by.formula`; string, required)
          - minLength: `1`
    - `DeletedReferenceConflict`
      - `kind` (`DeletedReferenceConflict.kind`; any of, required)
        - any of the following:
          - `string`: one of `"deleted_reference"`
      - `model` (`DeletedReferenceConflict.model`; string, required)
        - minLength: `1`
      - `record_id` (`DeletedReferenceConflict.record_id`; string, required)
        - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `field` (`DeletedReferenceConflict.field`; string, required)
        - minLength: `1`
      - `referenced_model` (`DeletedReferenceConflict.referenced_model`; string, required)
        - minLength: `1`
      - `referenced_record_id` (`DeletedReferenceConflict.referenced_record_id`; string, required)
        - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `deleted_by` (`DeletedReferenceConflict.deleted_by`; string, required)
        - one of `"ours"`, `"theirs"`
    - `ParentCycleConflict`
      - `kind` (`ParentCycleConflict.kind`; any of, required)
        - any of the following:
          - `string`: one of `"parent_cycle"`
      - `model` (`ParentCycleConflict.model`; string, required)
        - minLength: `1`
      - `field` (`ParentCycleConflict.field`; string, required)
        - minLength: `1`
      - `records` (`ParentCycleConflict.records`; array of object, required)
        - `record_id` (`ParentCycleConflict.records.record_id`; string, required)
          - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
        - `values` (`ParentCycleConflict.records.values`; object, required)
          - `base` (`ParentCycleConflict.records.values.base`; any of, required)
            - any of the following: `TypeId`, `null`
          - `ours` (`ParentCycleConflict.records.values.ours`; any of, required)
            - any of the following: `TypeId`, `null`
          - `theirs` (`ParentCycleConflict.records.values.theirs`; any of, required)
            - any of the following: `TypeId`, `null`
    - `InstallationConflict`
      - `kind` (`InstallationConflict.kind`; any of, required)
        - any of the following:
          - `string`: one of `"installation"`
      - `installation_id` (`InstallationConflict.installation_id`; string, required)
        - pattern: `^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$`
      - `extension_name` (`InstallationConflict.extension_name`; string, required)
        - maxLength: `129` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$`
      - `versions` (`InstallationConflict.versions`; object, required)
        - `base` (`InstallationConflict.versions.base`; any of, required)
          - any of the following: `string`, `string`
        - `ours` (`InstallationConflict.versions.ours`; any of, required)
          - any of the following: `string`, `string`, `null`
        - `theirs` (`InstallationConflict.versions.theirs`; any of, required)
          - any of the following: `string`, `string`, `null`
- `violations` (`checkRepoBranchMerge.response.200.violations`; array of Violation, required)
  - every option has:
    - `field` (`<option>.field`; string, required)
      - minLength: `1`
  - any of the following, each adding:
    - `object` (`checkRepoBranchMerge.response.200.violations.1`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.1.kind`; any of, required)
        - any of the following:
          - `string`: one of `"formula"`
      - `model` (`checkRepoBranchMerge.response.200.violations.1.model`; string, required)
        - minLength: `1`
      - `reason` (`checkRepoBranchMerge.response.200.violations.1.reason`; string, required)
        - minLength: `1`
      - `record_ids` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.2`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.2.kind`; any of, required)
        - any of the following:
          - `string`: one of `"custom_field"`
      - `model` (`checkRepoBranchMerge.response.200.violations.2.model`; string, required)
        - minLength: `1`
      - `reason` (`checkRepoBranchMerge.response.200.violations.2.reason`; string, required)
        - minLength: `1`
      - `record_ids` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.3`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.3.kind`; any of, required)
        - any of the following:
          - `string`: one of `"uncarried_value"`
      - `model` (`checkRepoBranchMerge.response.200.violations.3.model`; string, required)
        - minLength: `1`
      - `record_id` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.3.written_by`; string, required)
        - one of `"ours"`, `"theirs"`
      - `value` (`checkRepoBranchMerge.response.200.violations.3.value`; unknown, required)
      - `reason` (`checkRepoBranchMerge.response.200.violations.3.reason`; string, required)
        - minLength: `1`
    - `object` (`checkRepoBranchMerge.response.200.violations.4`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.4.kind`; any of, required)
        - any of the following:
          - `string`: one of `"record_reference"`
      - `model` (`checkRepoBranchMerge.response.200.violations.4.model`; string, required)
        - minLength: `1`
      - `record_id` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.4.referenced_model`; any of, required)
        - any of the following: `string`, `null`
      - `referenced_record_id` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.5`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.5.kind`; any of, required)
        - any of the following:
          - `string`: one of `"reference_target"`
      - `model` (`checkRepoBranchMerge.response.200.violations.5.model`; string, required)
        - minLength: `1`
      - `target_model` (`checkRepoBranchMerge.response.200.violations.5.target_model`; any of, required)
        - any of the following: `string`, `null`
      - `record_ids` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.6`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.6.kind`; any of, required)
        - any of the following:
          - `string`: one of `"reference_field_target"`
      - `model` (`checkRepoBranchMerge.response.200.violations.6.model`; string, required)
        - minLength: `1`
      - `target_model` (`checkRepoBranchMerge.response.200.violations.6.target_model`; any of, required)
        - any of the following: `string`, `null`
      - `record_ids` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.7`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.7.kind`; any of, required)
        - any of the following:
          - `string`: one of `"unique"`
      - `model` (`checkRepoBranchMerge.response.200.violations.7.model`; string, required)
        - minLength: `1`
      - `record_ids` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.8`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.8.kind`; any of, required)
        - any of the following:
          - `string`: one of `"required"`
      - `model` (`checkRepoBranchMerge.response.200.violations.8.model`; string, required)
        - minLength: `1`
      - `record_ids` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.9`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.9.kind`; any of, required)
        - any of the following:
          - `string`: one of `"field_api_name"`
      - `model` (`checkRepoBranchMerge.response.200.violations.9.model`; string, required)
        - minLength: `1`
      - `api_name` (`checkRepoBranchMerge.response.200.violations.9.api_name`; string, required)
        - minLength: `1`
      - `record_ids` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.10`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.10.kind`; any of, required)
        - any of the following:
          - `string`: one of `"model_api_name"`
      - `model` (`checkRepoBranchMerge.response.200.violations.10.model`; string, required)
        - minLength: `1`
      - `api_name` (`checkRepoBranchMerge.response.200.violations.10.api_name`; string, required)
        - minLength: `1`
      - `record_ids` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.11`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.11.kind`; any of, required)
        - any of the following:
          - `string`: one of `"extension_name"`
      - `model` (`checkRepoBranchMerge.response.200.violations.11.model`; string, required)
        - minLength: `1`
      - `name` (`checkRepoBranchMerge.response.200.violations.11.name`; string, required)
        - minLength: `1`
      - `record_ids` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.12`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.12.kind`; any of, required)
        - any of the following:
          - `string`: one of `"extension_peer"`
      - `model` (`checkRepoBranchMerge.response.200.violations.12.model`; string, required)
        - minLength: `1`
      - `name` (`checkRepoBranchMerge.response.200.violations.12.name`; string, required)
        - minLength: `1`
      - `version` (`checkRepoBranchMerge.response.200.violations.12.version`; string, required)
        - minLength: `1`
      - `peer` (`checkRepoBranchMerge.response.200.violations.12.peer`; string, required)
        - minLength: `1`
      - `range` (`checkRepoBranchMerge.response.200.violations.12.range`; string, required)
        - minLength: `1`
      - `peer_version` (`checkRepoBranchMerge.response.200.violations.12.peer_version`; any of, required)
        - any of the following: `string`, `null`
      - `record_ids` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.13`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.13.kind`; any of, required)
        - any of the following:
          - `string`: one of `"attachment"`
      - `model` (`checkRepoBranchMerge.response.200.violations.13.model`; string, required)
        - minLength: `1`
      - `record_id` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.14`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.14.kind`; any of, required)
        - any of the following:
          - `string`: one of `"agent_skill"`
      - `model` (`checkRepoBranchMerge.response.200.violations.14.model`; string, required)
        - minLength: `1`
      - `reason` (`checkRepoBranchMerge.response.200.violations.14.reason`; string, required)
        - minLength: `1`
      - `record_ids` (`checkRepoBranchMerge.response.200.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` (`checkRepoBranchMerge.response.200.violations.15`)
      - `kind` (`checkRepoBranchMerge.response.200.violations.15.kind`; any of, required)
        - any of the following:
          - `string`: one of `"tag_state"`
      - `reason` (`checkRepoBranchMerge.response.200.violations.15.reason`; string, required)
        - minLength: `1`
      - `record_ids` (`checkRepoBranchMerge.response.200.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}$`

### 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` (`checkRepoBranchMerge.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 | 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`
- `RepoNotFoundEncoded`
  - `_tag` (`RepoNotFoundEncoded._tag`; string, required)
    - one of `"RepoNotFound"`

### 409

DirtyBranch | NothingToMerge | AmbiguousMergeBase

#### Example

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

Any of the following:

- `DirtyBranchEncoded`
  - `_tag` (`DirtyBranchEncoded._tag`; string, required)
    - one of `"DirtyBranch"`
  - `branch` (`DirtyBranchEncoded.branch`; string, required)
    - minLength: `1`
- `NothingToMergeEncoded`
  - `_tag` (`NothingToMergeEncoded._tag`; string, required)
    - one of `"NothingToMerge"`
  - `source_branch` (`NothingToMergeEncoded.source_branch`; string, required)
    - minLength: `1`
  - `target_branch` (`NothingToMergeEncoded.target_branch`; string, required)
    - minLength: `1`
- `AmbiguousMergeBaseEncoded`
  - `_tag` (`AmbiguousMergeBaseEncoded._tag`; string, required)
    - one of `"AmbiguousMergeBase"`
  - `commit_ids` (`AmbiguousMergeBaseEncoded.commit_ids`; array of string, required)
    - pattern: `^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$`

### 413

RequestBodyTooLarge

#### Example

```json
{
  "_tag": "RequestBodyTooLarge",
  "max_bytes": -9007199254740991
}
```

- `_tag` (`checkRepoBranchMerge.response.413._tag`; string, required)
  - one of `"RequestBodyTooLarge"`
- `max_bytes` (`checkRepoBranchMerge.response.413.max_bytes`; integer, required)
  - maximum: `9007199254740991` · minimum: `-9007199254740991`

### 429

RateLimited

#### Example

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

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

### 500

RepoFailure

#### Example

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

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

### 503

SessionUnavailable | RateLimitUnavailable

#### Example

```json
{
  "_tag": "SessionUnavailable"
}
```

Any of the following:

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


Source: https://buildrforge.com/docs/api/check-repo-branch-merge/index.md
