---
title: "CreateDeployBody"
description: "Request body for creating a Deploy."
section: "Reference"
group: "Types"
order: 63
---

## Definition

```ts
interface CreateDeployBody {
  buildId?: string | undefined;
  appId?: string | undefined;
}
```

## Fields

| Field     | Type                  | Notes                                                                                                                                 |
| --------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `buildId` | `string \| undefined` | `optional` — Build to deploy. When omitted, deploys the most recent successful build of the app's default version (requires `appId`). |
| `appId`   | `string \| undefined` | `optional` — Deploy the latest successful build of this app's default version. Mutually exclusive with `buildId`.                     |
