> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dabarai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy project

> Promote a draft project to deploying

Only supported transition: `draft` → `deploying`. Any other value for
`status` returns `400`.

## Path parameters

<ParamField path="id" type="string" required />

## Headers

<ParamField header="api-token" type="string" required />

## Body

<ParamField body="status" type="string" required>
  Must equal `"deploying"`.
</ParamField>

## Response

<ResponseField name="success" type="boolean" />

<ResponseField name="message" type="string" />

<ResponseField name="data" type="Project">
  The updated project document.
</ResponseField>

## Errors

| Status | Reason                                                   |
| ------ | -------------------------------------------------------- |
| `400`  | `status` is not `"deploying"`, or project not in `draft` |
| `404`  | Project not found for this user                          |

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT "https://api.dabarai.com/v1/projects/6982139a1234abcd00009999" \
    -H "api-token: YOUR_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{ "status": "deploying" }'
  ```
</RequestExample>
