# Publish a coded app

> API reference for publishing a coded app from a package in the Orchestrator feed.

Publishes a coded app from a package available in the Orchestrator feed.

## API endpoint

`POST` `<BaseURL>/models/apps/codedapp/publish`

See [Base URL](https://docs.uipath.com/apps/automation-cloud/latest/api-guide/base-url) for the root endpoint path.

## Request headers

| Header | Value |
| --- | --- |
| **Authorization** | Bearer `<access_token>` |
| **Content-Type** | application/json |
| **X-UiPath-Internal-TenantId** | `<tenant_id>` |

:::note
Replace all the values between the angle brackets `<...>` with their corresponding use-case values.

The `<access_token>` is the one you received when you authorized the external application with the `Apps` or `Apps.Write` scope. It is available for 1 hour, then you need to generate a new one, or request a refresh token.
:::

## Request body (required)

```json
{
  "packageName": "MyCodedApp",
  "packageVersion": "1.0.0",
  "tenantName": "DefaultTenant"
}
```

| Field | Data type | Description |
| --- | --- | --- |
| **packageName** (required) | `string` | The name of the coded app package in the Orchestrator feed. |
| **packageVersion** (required) | `string` | The version of the coded app package to publish. |
| **tenantName** (required) | `string` | The name of the tenant where the package is hosted. |

## Responses

### 200 OK

Returns the published app details.

```json
{
  "systemName": "string",
  "deployVersion": 1
}
```

| Field | Data type | Description |
| --- | --- | --- |
| **systemName** | `string` | The system name of the published app. |
| **deployVersion** | `number` | The published version number. |

### 401 Unauthorized

You are not authenticated. Make sure you are using a valid access token with the `Apps` or `Apps.Write` scope.

### 403 Forbidden

You don't have permission to publish apps in the specified tenant.
