---
title: "upsertRepoExtensionUiAddress"
---

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

# upsertRepoExtensionUiAddress

Path: Forge API › extensions

`PUT /repos/{repo_id}/branches/{branch}/extensions/{name}/ui-address`

Upsert the UI address of the extension on a branch, to open in a browser. The UI serves the version the branch's head commit publishes, never its uncommitted edits, so a reload shows each commit before releasing. The first call assigns the address; later calls answer the same one.

## Path parameters

- `repo_id` (`upsertRepoExtensionUiAddress.path.repo_id`; string, required)
  - pattern: `^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `branch` (`upsertRepoExtensionUiAddress.path.branch`; string, required)
  - minLength: `1`
- `name` (`upsertRepoExtensionUiAddress.path.name`; string, required)
  - maxLength: `64` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`

## Code samples

### cURL

```bash
curl --request PUT \
  --url '<base-url>/repos/<repo_id>/branches/<branch>/extensions/<name>/ui-address'
```

### TypeScript

```typescript
const url = '<base-url>/repos/<repo_id>/branches/<branch>/extensions/<name>/ui-address';
const options = {method: 'PUT'};

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>/extensions/<name>/ui-address"

response = requests.put(url)

print(response.text)
```

## Responses

### 200

ExtensionUiAddress

#### Example

```json
{
  "address": "string"
}
```

- `address` (`upsertRepoExtensionUiAddress.response.200.address`; string, required)

### 400

InvalidRequest

#### Example

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

- `_tag` (`upsertRepoExtensionUiAddress.response.400._tag`; string, required)
  - one of `"InvalidRequest"`
- `part` (`upsertRepoExtensionUiAddress.response.400.part`; string, required)
  - one of `"path"`, `"query"`, `"headers"`, `"body"`
- `issues` (`upsertRepoExtensionUiAddress.response.400.issues`; array of object, required)
  - `path` (`upsertRepoExtensionUiAddress.response.400.issues.path`; array\<any of\>, required)
    - any of the following: `string`, `integer`
  - `message` (`upsertRepoExtensionUiAddress.response.400.issues.message`; string, required)

### 401

InvalidCredentials

#### Example

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

- `_tag` (`upsertRepoExtensionUiAddress.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 | ExtensionNotFound | ExtensionUiNotFound | 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`
- `ExtensionNotFoundEncoded`
  - `_tag` (`ExtensionNotFoundEncoded._tag`; string, required)
    - one of `"ExtensionNotFound"`
  - `extension_name` (`ExtensionNotFoundEncoded.extension_name`; string, required)
    - minLength: `1`
- `ExtensionUiNotFoundEncoded`
  - `_tag` (`ExtensionUiNotFoundEncoded._tag`; string, required)
    - one of `"ExtensionUiNotFound"`
  - `extension_name` (`ExtensionUiNotFoundEncoded.extension_name`; string, required)
- `RepoNotFoundEncoded`
  - `_tag` (`RepoNotFoundEncoded._tag`; string, required)
    - one of `"RepoNotFound"`

### 409

ExtensionPublicationPending | ExtensionNameTaken | ExtensionVersionNotNewer

#### Example

```json
{
  "_tag": "ExtensionPublicationPending",
  "extension_name": "string",
  "version": "string"
}
```

Every option has:

- `extension_name` (`<option>.extension_name`; string, required)
  - minLength: `1`

Any of the following, each adding:

- `ExtensionPublicationPendingEncoded`
  - `_tag` (`ExtensionPublicationPendingEncoded._tag`; string, required)
    - one of `"ExtensionPublicationPending"`
  - `version` (`ExtensionPublicationPendingEncoded.version`; any of, required)
    - any of the following: `string`, `string`
- `ExtensionNameTakenEncoded`
  - `_tag` (`ExtensionNameTakenEncoded._tag`; string, required)
    - one of `"ExtensionNameTaken"`
  - `owner_repo_id` (`ExtensionNameTakenEncoded.owner_repo_id`; string, required)
    - pattern: `^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `ExtensionVersionNotNewerEncoded`
  - `_tag` (`ExtensionVersionNotNewerEncoded._tag`; string, required)
    - one of `"ExtensionVersionNotNewer"`
  - `version` (`ExtensionVersionNotNewerEncoded.version`; string, required)
    - pattern: `^(?:0|[1-9]\d{0,8})\.(?:0|[1-9]\d{0,8})\.(?:0|[1-9]\d{0,8})$`
  - `latest_version` (`ExtensionVersionNotNewerEncoded.latest_version`; string, required)
    - pattern: `^(?:0|[1-9]\d{0,8})\.(?:0|[1-9]\d{0,8})\.(?:0|[1-9]\d{0,8})$`

### 422

ExtensionBuildFailed | ExtensionNotSelfContained | ExtensionRequiredFieldWithoutDefault | ExtensionDependencyRefused

#### Example

```json
{
  "_tag": "ExtensionBuildFailed",
  "extension_name": "string",
  "message": "string",
  "reason": {
    "_tag": "SourceRefused",
    "location": {
      "path": "string",
      "line": -9007199254740991,
      "column": -9007199254740991
    }
  }
}
```

Every option has:

- `extension_name` (`<option>.extension_name`; string, required)
  - minLength: `1`

Any of the following, each adding:

- `ExtensionBuildFailedEncoded`
  - `_tag` (`ExtensionBuildFailedEncoded._tag`; string, required)
    - one of `"ExtensionBuildFailed"`
  - `message` (`ExtensionBuildFailedEncoded.message`; string, required)
    - minLength: `1`
  - `reason` (`ExtensionBuildFailedEncoded.reason`; any of, required)
    - any of the following:
      - `object`
        - `_tag` (`ExtensionBuildFailedEncoded.reason.1._tag`; string, required)
          - one of `"SourceRefused"`
        - `location` (`ExtensionBuildFailedEncoded.reason.1.location`; object, optional)
          - `path` (`ExtensionBuildFailedEncoded.reason.1.location.path`; string, required)
            - minLength: `1`
          - `line` (`ExtensionBuildFailedEncoded.reason.1.location.line`; integer, optional)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
          - `column` (`ExtensionBuildFailedEncoded.reason.1.location.column`; integer, optional)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
      - `object`
        - `_tag` (`ExtensionBuildFailedEncoded.reason.2._tag`; string, required)
          - one of `"DependencyFailed"`
        - `dependency` (`ExtensionBuildFailedEncoded.reason.2.dependency`; string, required)
          - minLength: `1`
      - `object`
        - `_tag` (`ExtensionBuildFailedEncoded.reason.3._tag`; string, required)
          - one of `"CompileFailed"`
        - `location` (`ExtensionBuildFailedEncoded.reason.3.location`; object, optional)
          - `path` (`ExtensionBuildFailedEncoded.reason.3.location.path`; string, required)
            - minLength: `1`
          - `line` (`ExtensionBuildFailedEncoded.reason.3.location.line`; integer, optional)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
          - `column` (`ExtensionBuildFailedEncoded.reason.3.location.column`; integer, optional)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
      - `object`
        - `_tag` (`ExtensionBuildFailedEncoded.reason.4._tag`; string, required)
          - one of `"DeclarationFailed"`
        - `location` (`ExtensionBuildFailedEncoded.reason.4.location`; object, optional)
          - `path` (`ExtensionBuildFailedEncoded.reason.4.location.path`; string, required)
            - minLength: `1`
          - `line` (`ExtensionBuildFailedEncoded.reason.4.location.line`; integer, optional)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
          - `column` (`ExtensionBuildFailedEncoded.reason.4.location.column`; integer, optional)
            - maximum: `9007199254740991` · minimum: `-9007199254740991`
- `ExtensionNotSelfContainedEncoded`
  - `_tag` (`ExtensionNotSelfContainedEncoded._tag`; string, required)
    - one of `"ExtensionNotSelfContained"`
  - `dependencies` (`ExtensionNotSelfContainedEncoded.dependencies`; array of object, required)
    - `custom_model` (`ExtensionNotSelfContainedEncoded.dependencies.custom_model`; string, required)
      - minLength: `1`
    - `custom_field` (`ExtensionNotSelfContainedEncoded.dependencies.custom_field`; string, required)
      - minLength: `1`
    - `kind` (`ExtensionNotSelfContainedEncoded.dependencies.kind`; string, required)
      - one of `"reference"`, `"formula"`
    - `depends_on` (`ExtensionNotSelfContainedEncoded.dependencies.depends_on`; string, required)
      - minLength: `1`
- `ExtensionRequiredFieldWithoutDefaultEncoded`
  - `_tag` (`ExtensionRequiredFieldWithoutDefaultEncoded._tag`; string, required)
    - one of `"ExtensionRequiredFieldWithoutDefault"`
  - `custom_fields` (`ExtensionRequiredFieldWithoutDefaultEncoded.custom_fields`; array of object, required)
    - `custom_model` (`ExtensionRequiredFieldWithoutDefaultEncoded.custom_fields.custom_model`; string, required)
      - minLength: `1`
    - `custom_field` (`ExtensionRequiredFieldWithoutDefaultEncoded.custom_fields.custom_field`; string, required)
      - minLength: `1`
- `ExtensionDependencyRefusedEncoded`
  - `_tag` (`ExtensionDependencyRefusedEncoded._tag`; string, required)
    - one of `"ExtensionDependencyRefused"`
  - `dependency_name` (`ExtensionDependencyRefusedEncoded.dependency_name`; string, required)
    - minLength: `1`
  - `range` (`ExtensionDependencyRefusedEncoded.range`; string, required)
    - minLength: `1`
  - `installed_version` (`ExtensionDependencyRefusedEncoded.installed_version`; any of, required)
    - any of the following: `string`, `null`
  - `message` (`ExtensionDependencyRefusedEncoded.message`; string, required)
    - minLength: `1`

### 429

RateLimited

#### Example

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

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

### 500

OrgFailure | ControlPlaneFailure | RepoFailure

#### Example

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

Every option has:

- `reason` (`<option>.reason`; string, required)

Any of the following, each adding:

- `OrgFailureEncoded`
  - `_tag` (`OrgFailureEncoded._tag`; string, required)
    - one of `"OrgFailure"`
- `ControlPlaneFailureEncoded`
  - `_tag` (`ControlPlaneFailureEncoded._tag`; string, required)
    - one of `"ControlPlaneFailure"`
- `RepoFailureEncoded`
  - `_tag` (`RepoFailureEncoded._tag`; string, required)
    - one of `"RepoFailure"`

### 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/upsert-repo-extension-ui-address/index.md
