---
title: "POST /registry-git/{asset}/{namespace}/{slug}/publish"
method: POST
path: "/registry-git/{asset}/{namespace}/{slug}/publish"
tags: ["registry-git"]
---

# POST /registry-git/{asset}/{namespace}/{slug}/publish

`POST /registry-git/{asset}/{namespace}/{slug}/publish`

Publish a registry resource from a git commit (defaults to the branch head)

## Path parameters

- `asset` 'apis' | 'schemas' | 'rules' | 'sdks', required
- `namespace` string, required
- `slug` string, required

## Request body

- object
  - `commitSha` string

## Response `200`

Default Response

- object
  - `commitSha` string, required
  - `version` string, nullable, required

## Other responses

- `400` — Bad request
- `401` — No auth
- `403` — Forbidden
- `404` — Not found
- `422` — Invalid payload
- `500` — Uncaught error

## Changes

- **2026-08-07** `8dff1e93bc68` — 1 info
  - api operation id `postregistryGitAssetNamespaceSlugPublish` removed and replaced with `postRegistryGitAssetNamespaceSlugPublish`
- **2026-07-31** `6bf4d2849a20` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/scalar/apis/core/changes/registry-git/:asset/:namespace/:slug/publish/post.md)

---

[API](https://skmtc.dev/scalar/apis/core.md) · [All operations](https://skmtc.dev/scalar/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scalar/core/revisions/82f9494f4fbd/schema)
