Skip to main content
PATCH
Rename a wiki page and/or write a new revision

Authorizations

Authorization
string
header
required

An aik_… programmatic API key (app.atako.ai → Settings → API keys) or a Supabase session JWT.

Path Parameters

projectId
string<uuid>
required

Project id

pageId
string<uuid>
required

Wiki page id

Body

application/json
title
string
Required string length: 1 - 200
content
string
Maximum string length: 200000
message
string
Maximum string length: 500
autosave
boolean

Editor autosave: extends the newest revision when it belongs to the same author and the same sessionId, carries no message and is less than 10 minutes old.

sessionId
string

The editor writing (one per browser tab). Two sessions never share a revision.

Required string length: 1 - 100
baseSha
string

The sha of the head revision the caller edited on. If the page changed since, nothing is written and the answer is 409 WIKI_CONFLICT.

Required string length: 1 - 64

Response

page
object
required

An open page: its current text, a page of its history (newest first) and its sub-pages as table-of-contents entries. Every wiki write returns this same shape, so an editor never has to re-read the page it just saved.