---
title: "Create a build"
method: POST
path: "/api/spec"
---

# Create a build

`POST /api/spec`

Create a build by uploading a spec along with some other info

## Response `200`

Successful response

## Other responses

- `401` — Unauthorized
- `404` — Project not found

## Changes

- **2025-01-17** `b988c3e4129e` — 1 info
  - added the new optional request property `mergeBranch`
- **2025-01-17** `16b8e51581b5` — 1 breaking, 1 warning
  - added the new required request property `projectName`
  - removed the request property `project`
- **2025-01-14** `af177c01dbc6` — 1 info
  - endpoint added
- **2025-01-13** `1be67c1da343` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/stainless-api/apis/builds-api/changes/api/spec/post.md)

---

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