# App methods

URL: /code/sdk/app · Id: `page:code/sdk/app`

> Every App Verb as a typed SDK method, with its inputs, result, refusals and an example.

Reference for [App](/business/nouns/app).

### App.publish
Publish releases an App to its Customers, so each Tenant runs its newest build. [Verb page](/business/nouns/app/publish?interface=sdk).

```ts
interface AppVerbs {
  publish(input: AppPublishInput, options?: SB.CallOptions): SB.Call<App>
}
```

Emits [`App.published`](/business/events/App.published).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `app` | [App](/business/nouns/app) | Yes | The App to release. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `app` | [App](/business/nouns/app) | Yes | The App, now released. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
| The record is not in a state that allows this Verb, so the call is refused. | [`refused`](/code/api/errors/refused) | Read the record, run the Verb that moves it to an allowed state, then retry. | None. |

**Example**

```ts
import { $ } from 'startup-builder'

const app = await $.App.publish({ app: 'app_sAebuEW683' })
```