# DeploymentCreate

> Deploy a service.

Deploy a service. An empty body deploys the latest commit of the environment's branch.

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `source` | object |  |
| `redeploy_of` | string | Rebuild-free redeploy of an existing deployment's image with current settings and secrets. |
| `message` | string |  |
| `clear_build_cache` | boolean | Default `false`. |

\* always present

## Example

```json
{
  "source": {
    "kind": "git",
    "ref": "main",
    "image": "string",
    "upload_id": "string"
  },
  "redeploy_of": "string",
  "message": "string",
  "clear_build_cache": false
}
```

## Used by

- [Deploy](/docs/api/deployments/#deploy)
