# Create Build

```
POST 
/v1/builds
```

Compile a dashboard's source into the bundle its viewers load.

Answers 201 with the build record at once; the compile runs on a build worker. Poll `GET /v1/builds/{build_id}` until `status` is `success` or `failed` (`error` says why).

Building `main` publishes: it writes the bundle viewers are served. Building the draft (the default) publishes nothing. Needs edit access to the dashboard and a Creator or Admin role; a dashboard the caller cannot see answers 404. 409 `VIZ_LOCKED` while another member is editing it.

## Request[​](#request "Link direto para request")

## Responses[​](#responses "Link direto para Responses")

* 201
* 404
* 422

Successful Response

Not found

Validation Error
