pages

Update page content

Replaces the page content with a new published version. The body replaces the content wholesale — GET the page first if you only mean to change one field. The slug and public_url never change, so printed QR codes stay valid. A slug that belongs to another organization answers 404, never 403.

patch/api/v1/pages/{slug}

Request

  • Base URL: https://app.qrtap.kg
  • URL: https://app.qrtap.kg/api/v1/pages/{slug}
  • Auth: HTTP bearer

Path parameters

slugstring required

Page slug as minted by the platform (the /a/{slug} path segment).

Request body

Example request

{
  "content": {
    "kind": "profile",
    "segment": "otzyvy",
    "theme": "emerald",
    "name": "Кофейня «Тандем»",
    "specialty": "Спешелти-кофе в центре Бишкека",
    "bio": "",
    "phone": "+996555123456",
    "whatsapp": "https://wa.me/996555123456",
    "instagram": "https://instagram.com/tandem.coffee",
    "twogis": "",
    "bookingUrl": "",
    "services": [
      {
        "name": "Фильтр-кофе",
        "price": "180 сом"
      }
    ],
    "hours": "ежедневно 8:00–22:00",
    "address": "Бишкек, ул. Киевская 100",
    "reviewLinks": {
      "twogis": "https://2gis.kg/bishkek/firm/70000001"
    }
  }
}

Response

Updated page (version incremented).

idstring uuid required
slugstring required

Public slug; stable for the life of the page.

titlestring

Page heading (mirrors content.name).

segmentstring
theme'emerald' | 'ocean' | 'plum' | 'terracotta' | 'graphite'
status'draft' | 'published' | 'archived' required
publishedboolean required

Convenience mirror of status === "published".

versioninteger required

Current content version (increments on every write).

public_urlstring uri required

Where the page is served: https://app.qrtap.kg/a/{slug}.

created_atstring date-time
updated_atstring date-time

When the current version was published.

Example response

{
  "id": "9d1c1f0a-2a3b-4c5d-8e9f-0a1b2c3d4e5f",
  "slug": "cozy-cafe-x1",
  "title": "Кофейня «Тандем»",
  "segment": "otzyvy",
  "theme": "emerald",
  "status": "published",
  "published": true,
  "version": 3,
  "public_url": "https://app.qrtap.kg/a/cozy-cafe-x1",
  "created_at": "2026-07-01T08:00:00.000Z",
  "updated_at": "2026-07-20T10:15:00.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.