---
title: "Create a build"
method: POST
path: "/build"
tags: ["Build"]
---

# Create a build

`POST /build`

Create a new build.

## Request body

- BuildCreate
  - `application_id` integer, required — The ID of the application that the build belongs to.
  - `branch` string, required — The branch that the asset was built from.
  - `commit` object, required
    - `id` string — The ID of the commit that the build was built from.
    - `permalink` string — The permalink to the commit that the asset was built from.

## Response `201`

The operation was successful.

- BuildResponse
  - `id` integer, required — The ID of the build.
  - `application_id` integer — The ID of the application that the build belongs to.
  - `branch` string, required — The branch that the asset was built from.
  - `commit` object, required
    - `id` string — The ID of the commit that the build was built from.
    - `permalink` string — The permalink to the commit that the asset was built from.
  - `created_at` string, date-time, required — The ISO-8601 UTC timestamp of when the build was created.
  - `updated_at` string, date-time, nullable — The ISO-8601 UTC timestamp of when the build was last updated.
  - `description` string, nullable — A description of the build.
  - `nrn` string, nullable — The NRN of the build.
  - `status` 'pending' | 'in_progress' | 'failed' | 'successful', required — The status of the build.

## Other responses

- `4XX` — Client error responses due to invalid input or missing parameters.
- `5XX` — Server error responses indicating an issue on the API side.

---

[API](https://skmtc.dev/nullplatform/apis/nullplatform-api.md) · [All operations](https://skmtc.dev/nullplatform/apis/nullplatform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nullplatform/nullplatform-api/revisions/1c4ea154b159/schema)
