KuikCodeDocs
APIReferencePages

Publish a KuikPage

POST
/pages/{id}/publish

Puts the current draft live at its address, exactly as the editor's Publish button does. Codes pointing at the page show the new version right away. The first publish also gives the page its own KuikCode: an existing code that opens the page, or a new one, which counts toward the plan's code limit (at the limit the page publishes without one).

Authorization

apiKey
AuthorizationBearer <token>

An API key from Settings, Developers: Authorization: Bearer kc_live_...

In: header

Path Parameters

id*string
Length1 <= length

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/pages/string/publish"
{  "url": "string",  "version": 0,  "kuikcodeCreated": "string"}