---
title: "Publish the current draft for a slug"
method: POST
path: "/api/admin/content/{slug}/publish"
tags: ["Admin"]
---

# Publish the current draft for a slug

`POST /api/admin/content/{slug}/publish`

## Request

- Base URL: `https://app.d-sports.org`
- URL: `https://app.d-sports.org/api/admin/content/{slug}/publish`
- Auth: HTTP bearer

Platform moderator/admin only (#998). Copies the draft onto the published block, bumps `version` by one and stamps `publishedAt`/`publishedBy` — which is what changes the public `GET /api/content/{slug}` payload and its `ETag`. Refused with `VALIDATION_ERROR` when the draft has a blank title; 404 when the slug does not exist.

## Path parameters

- `slug` string, required

## Response `200`

{ success, data: AdminCopy }

## Other responses

- `400`: { success: false, error, code: "VALIDATION_ERROR" }
- `401`: Not authenticated
- `403`: { success: false, error, code: "FORBIDDEN" }
- `404`: { success: false, error, code: "NOT_FOUND" }

## Changes

- **2026-11-18** `6de639c52609`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/changes/api/admin/content/:slug/publish/post.md)

---

[API](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api.md) - [All operations](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/llms.txt) - [OpenAPI document](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/revisions/63735cf90a04?raw)
