---
title: "Create"
method: POST
path: "/releases"
tags: ["Releases"]
---

# Create

`POST /releases`

Create a new release.

## Query parameters

- `expand` ReleaseExpansion[]

## Request body

- CreateReleaseRequest
  - `version` string, required — The version of the release.
  - `config_schema_ids` string[], required — The IDs of the config schemas included in the release.
  - `git_commit_ref` GitCommitRef — A reference to a git commit. At least one of `id` or `sha` must be provided. When both are provided, `id` takes precedence and `sha` is ignored.
    - `id` string — ID of the git commit. Takes precedence over `sha` when both are provided.
    - `sha` string — The SHA hash of the git commit. Used only when `id` is not provided.

## Response `200`

Successfully created the release.

- Release
  - `object` 'release', required — The object type, which is always `release`.
  - `id` string, required — ID of the release.
  - `version` string, required — The version of the release.
  - `git_commit_id` string, nullable, required — The ID of the git commit associated with this release.
  - `created_at` string, date-time, required — Timestamp of when the release was created.
  - `updated_at` string, date-time, required — Timestamp of when the release was last updated.
  - `config_schemas` ConfigSchema[] — Expand the config schemas using 'expand=config_schemas' in the query string.
    - `object` 'config_schema', required — The object type, which is always `config_schema`.
    - `id` string, required — ID of the config schema.
    - `digest` string, required — The digest of the config schema.
    - `config_type_name` string, required — The name of the config type.
    - `instance_filepath` string, required — The absolute file system path where config instances for this schema are written.
    - `created_at` string, date-time, required — Timestamp of when the config schema was created.
    - `updated_at` string, date-time, required — Timestamp of when the config schema was last updated.
    - `config_type_id` string, required — ID of the config type.
    - `language` 'jsonschema' | 'cue', required
    - `format` 'json' | 'yaml' | 'cue', required
    - `documents` SchemaDocument[]
      - `id` string, required — The unique identifier for this document.
      - `name` string, required — The document filename.
      - `data` string, required — The raw document content.
    - `config_type` ConfigType
      - `object` 'config_type', required — The object type, which is always `config_type`.
      - `id` string, required — ID of the config type.
      - `name` string, required — Name of the config type.
      - `slug` string, required — An immutable, code-friendly name for the config type.
      - `created_at` string, date-time, required — Timestamp of when the config type was created.
      - `updated_at` string, date-time, required — Timestamp of when the config type was last updated.

## Changes

- **2026-03-06** `365853b9c33d` — 2 info
  - added `#/components/schemas/ConfigType` to the `allOf[subschema #2]/config_schemas/items/allOf[subschema #2]/config_type` response property `allOf` list for the response status `200`
  - removed `#/components/schemas/BaseConfigType` from the `allOf[subschema #2]/config_schemas/items/allOf[subschema #2]/config_type` response property `allOf` list for the response status `200`
- **2026-03-06** `7f0f7fc868da` — 2 info
  - added `#/components/schemas/BaseConfigType` to the `allOf[subschema #2]/config_schemas/items/allOf[subschema #2]/config_type` response property `allOf` list for the response status `200`
  - removed `#/components/schemas/ConfigType` from the `allOf[subschema #2]/config_schemas/items/allOf[subschema #2]/config_type` response property `allOf` list for the response status `200`

[Change history](https://skmtc.dev/mirurobotics/apis/miru-platform-api/changes/releases/post.md)

---

[API](https://skmtc.dev/mirurobotics/apis/miru-platform-api.md) · [All operations](https://skmtc.dev/mirurobotics/apis/miru-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mirurobotics/miru-platform-api/revisions/3ca381fa7ccd/schema)
