---
title: "Commit Schema"
method: PATCH
path: "/v1/{workspace}/schema/{schema_slug}/commit/"
---

# Commit Schema

`PATCH /v1/{workspace}/schema/{schema_slug}/commit/`

Commit a draft schema to make it live. Changes will start to take effect as soon as it's live.

## Path parameters

- `workspace` string, required
- `schema_slug` string, required

## Query parameters

- `commit_message` string

## Response `200`

Successfully retrieved schema object

- object
  - `slug` string — Unique identifier for the schema
  - `name` string — Human-readable name of the schema
  - `description` string, nullable — Description of the schema. Can be used to describe which action this schema is linked to.
  - `status` 'draft' | 'live' — Status of returned schema. By default, draft version is returned. You can set `mode=live` to fetch the live schema.
  - `hash` string — Git-like hash for version tracking
  - `json_schema` object, nullable — updated json schema
  - `created_at` string, date-time — When the schema was created
  - `updated_at` string, date-time — When the schema was last updated
  - `committed_at` string, date-time — When the schema was last committed
  - `commit_message` string — Last commit message

## Other responses

- `401` — Authentication failed
- `404` — Schema not found

---

[API](https://skmtc.net/suprsend/apis/suprsend-api.md) · [All operations](https://skmtc.net/suprsend/apis/suprsend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/suprsend/suprsend-api/versions/8bd2574bd2c3/schema)
