Admin

Create an approved-copy slug from a draft

Changed on

Platform moderator/admin only (#998). Upsert semantics: creates the slug when absent and saves the draft block, or re-saves the draft of an existing slug. Publishing is a separate POST /api/admin/content/{slug}/publish, so a half-written edit never reaches clients. Body: { slug, title?, body?, bullets? } with at least one of the three content fields. slug must be lowercase words separated by hyphens.

post/api/admin/content

Request

  • Base URL
    https://app.d-sports.org
  • Auth
    HTTP bearer

Request body

slugstring required
titlestring
bodystring
bulletsstring[]

Response

{ success, data: AdminCopy } — an existing draft was re-saved.

Changes