Tuti APIDocs

Update an article

Change a docs article; each save is kept as a version (articles.revisions). On a published one, title, text and collection wait as unpublished changes until articles.publishChanges or publish: true (refused, 402 article_limit, past the plan's limit); the rest, settings included, change at once

Needs a read + write key.

PATCH/articles/{slug}

Authorization Bearer token

Path parameters

  • slugstring · 1–80 charactersrequired

    The article's slug: the end of its address, /docs/<slug>

Body

application/json · object · required

  • titlestring · 3–120 characters

    Its title, 3 to 120 characters

  • bodystring · at most 50000 characters

    Its text as plain text: blank lines between paragraphs. Ignored when content is sent

  • contentany

    Its text as rich content: the editor's JSON document (the article profile), as articles.get returns it

  • collectionstring · nullable · 1–80 characters

    The slug of the collection it's in, or null for none

  • showUpdatedDateboolean

    Show “Updated <date>” on the portal when it's edited after it was published (default true)

  • listingstring

    Where it's served: everywhere, unlisted (readable at its link, in no list or search; AI answers cite it), hidden (nowhere public) or ai_only (only a source for AI answers). Changes at once, on a published article too

    One of"everywhere""unlisted""hidden""ai_only"

  • descriptionstring · at most 300 characters

    The meta description, under its title in search engines' results (up to 300 characters; empty: from the text)

  • keywordsarray of string · at most 20 items

    Words readers search for that the text doesn't have (up to 20, each up to 60 characters; the same word twice, in any case, is kept once): searched like the text by docs search, and AI answers find the article by them. Replaces the ones it has

    Each item: 1–60 characters

  • noindexboolean

    Block search indexing: search engines are asked not to list it, and it's left out of the sitemap, llms.txt and llms-full.txt (readers still find it in the docs and their search)

  • accessstring

    Who may read it, and so what's in it, on top of the levels above it: inherit (the default: what the level above allows; for a tab, everyone who may read the portal), signed_in (anyone signed in on the portal) or groups (readers in one of groups, besides the team; with none, only the team). The team reads everything

    One of"inherit""signed_in""groups"

  • groupsarray of string · at most 20 items

    With access: "groups", the keys of the project's reader groups (see groups.list), up to 20; left out, the ones it has. Without access, sending groups alone means they make it groups (some) or inherit (none)

    Each item: 1–50 characters, matches ^[a-z0-9][a-z0-9_.:-]*$

  • noAccessstring

    What people it isn't for see of it: inherit (the default: what the level above says; with nothing above saying, as for a tab, hide: hidden), lock (its title or name, listed with a lock; its page asks them to sign in or says they don't have access, never its content, and nothing in it) or hide (nothing: not listed, and its link is not found)

    One of"inherit""lock""hide"

  • newSlugstring · nullable · 1–80 characters, matches ^[a-z0-9]+(-[a-z0-9]+)*$

    Sets a new end of its address, by you (as slug in articles.create), on a published article too: the old address redirects. Null goes back to one from the title: a draft's follows it again; a published one keeps the one it has

  • publishboolean

    On a published article: make the changes live at once, with any saved before, instead of keeping them unpublished (refused, 402, past the plan's limit; saving alone always works). Ignored on a draft

  • revisionstring · at least 1 character

    The version (its id from articles.revisions) the change was made on. Someone's text saved since: a 409, except that a text made before Autopilot's edits saved since is applied by section onto the newest when they changed other sections (the same section: a 409). A title or collection sent as it was at that version keeps the newest; one changed since by someone else too is a 409. With publish: true on a published article it must be the newest (else a 409): publishing goes only through a version you saw. Required for a new text, or to publish, while Autopilot's edits wait in the article's unpublished changes (without it, a 409), so they're never overwritten or published unseen

  • seenstring · at least 1 character

    After such a 409: the newest version you were shown (still the newest). The text is applied by section onto it, yours where you both changed a section (merged by hand), and Autopilot's edits it writes over are dismissed

  • ownstring · at least 1 character

    The version an earlier save of this same text left (its revision in that save's result), when that save merged it onto Autopilot's edits: it's the saver's own, not someone else's, so later edits are layered onto it by section

  • editedarray of string · at most 1000 items

    The editor's: the sections of the text its user changed since the version it last had (own, else revision), by key (a heading's text and how often it came before). Only those replace the newest text's; one someone changed since that version is a 409 (unless seen is the newest), and so is text that moves sections around. Without it, the text is merged by version

    Each item: at most 2000 characters

Responses

  • 200The article as saved, with the version it left

    application/json · object

    The article as saved, with the version it left

    • slugstringrequired

      Its slug: the end of its address, /docs/<slug>. A draft's follows its title unless the team set it; a published one keeps it

    • titlestringrequired

      Its title

    • statusstringrequired

      published on the portal, or a draft only the team sees

      One of"published""draft"

    • publishedAtstring · nullablerequired

      When it was published (ISO 8601); null for a draft

    • showUpdatedDatebooleanrequired

      Whether the portal shows “Updated <date>” once it's edited after it was published

    • listingstringrequired

      Where it's served once published: everywhere, unlisted (at its link only), hidden (nowhere public) or ai_only (only a source for AI answers)

      One of"everywhere""unlisted""hidden""ai_only"

    • deletedAtstring

      When it was deleted (ISO 8601): only in the list of deleted articles

    • collectionobject · nullablerequired

      The collection it's in, or null for none

      Show 2 properties
      • slugstringrequired

        The collection's slug

      • namestringrequired

        The collection's name

    • orderintegerrequired

      Its place among the articles in its collection (or in none), 0 first: readers list them by this, then by title

    • bodystringrequired

      Its text as plain text

    • contentmap of anyrequired

      Its text as rich content: the editor's JSON document

    • urlstringrequired

      Its page on the portal

    • accessstring

      Only for the team: who may read it (changes at once, like the listing): inherit, signed_in or groups

      One of"inherit""signed_in""groups"

    • groupsarray of string

      Only for the team: with groups access, the keys of the reader groups that may read it

    • noAccessstring

      Only for the team: what people it isn't for see of it: inherit, lock or hide

      One of"inherit""lock""hide"

    • customSlugboolean

      Only for the team: whether the team set its slug (else it comes from the title)

    • descriptionstring

      Only for the team: its meta description for search engines (empty: from the text)

    • keywordsarray of string

      Only for the team: words docs search and AI answers find it by besides its text

    • noindexboolean

      Only for the team: whether search engines are asked not to list it

    • changesobject · nullable

      Only for the team: a published article's saved changes that readers don't see yet (title, text, collection), until articles.publishChanges or articles.discardChanges; null when there are none

      Show 5 properties
      • titlestringrequired

        The title saved

      • bodystringrequired

        The text saved, as plain text

      • contentmap of anyrequired

        The text saved, as rich content

      • collectionobject · nullablerequired

        The collection saved, or null for none

        Show 2 properties
        • slugstringrequired

          The collection's slug

        • namestringrequired

          The collection's name

      • savedAtstringrequired

        When they were last saved: send it as savedAt to publish or discard only these (ISO 8601)

    • createdAtstringrequired

      When it was written (ISO 8601)

    • updatedAtstringrequired

      When it was last changed (ISO 8601)

    • revisionstring · nullablerequired

      The version this save left newest (its id from articles.revisions): send it as revision with the next save of this text

    • mergedbooleanrequired

      Whether the text was applied by section onto a newer version than revision said (changes saved since, Autopilot's edits or someone's): the text saved isn't the one sent

    • newVersionbooleanrequired

      Whether it made a new version: not when the text, title and collection it leaves are the newest's as they were (nothing changed)

  • 400The request isn't valid: a field is missing, has the wrong type or is out of range, or the body isn't a JSON object. The message names the field.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 401No API key was sent, or it isn't valid: it was revoked, or whoever created it left the team.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 402The project's plan doesn't include this or is at its limit, it's out of AI credits, or a payment didn't go through. The message says what's needed.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 403It isn't allowed: the key is read-only, its creator isn't a project owner or admin where only they may, only a person can do it in the app, a setting is off, or someone's address isn't confirmed. The code says which.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 404Nothing by that name, number or id in this project.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 409It can't be done as things are now: for example the post was merged, or someone changed it meanwhile. The code says which.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 429Too many requests: past 600 a minute per key, try again after the seconds in the Retry-After header. Some operations have limits of their own (their description gives them), whose 429 has no Retry-After.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

  • 500Something went wrong on Tuti's side. Try again in a moment.

    application/json · Error

    • errorobjectrequired
      Show 2 properties
      • codestringrequired

        What went wrong, for code to check: stays the same

      • messagestringrequired

        What went wrong, for a person: may change

curl 'https://tuti.so/api/v1/articles/getting-started' \
  --request PATCH \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "body": "Owners and admins invite from the Team page.",
  "publish": true,
  "revision": "cm3x9a1b2c3d4e5f6g7h8i9j0"
}'
const response = await fetch("https://tuti.so/api/v1/articles/getting-started", {
  method: "PATCH",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "body": "Owners and admins invite from the Team page.",
    "publish": true,
    "revision": "cm3x9a1b2c3d4e5f6g7h8i9j0"
  }),
});
const text = await response.text();
import requests

response = requests.patch(
    "https://tuti.so/api/v1/articles/getting-started",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"body\": \"Owners and admins invite from the Team page.\",\n  \"publish\": true,\n  \"revision\": \"cm3x9a1b2c3d4e5f6g7h8i9j0\"\n}",
)
print(response.text)
{
  "slug": "getting-started",
  "title": "Getting started",
  "status": "published",
  "publishedAt": "2026-11-02T09:30:00.000Z",
  "showUpdatedDate": true,
  "listing": "everywhere",
  "deletedAt": "2026-11-10T08:00:00.000Z",
  "collection": {
    "slug": "basics",
    "name": "Basics"
  },
  "order": 0,
  "body": "Create a board, then share your portal.",
  "content": {
    "type": "doc",
    "content": [
      {
        "type": "paragraph",
        "content": [
          {
            "type": "text",
            "text": "Create a board, then share your portal."
          }
        ]
      }
    ]
  },
  "url": "https://help.example.com/docs/getting-started",
  "access": "inherit",
  "groups": [],
  "noAccess": "inherit",
  "customSlug": false,
  "description": "",
  "keywords": [
    "onboarding"
  ],
  "noindex": false,
  "changes": null,
  "createdAt": "2026-11-02T09:30:00.000Z",
  "updatedAt": "2026-11-02T09:30:00.000Z",
  "revision": "cm3x9a1b2c3d4e5f6g7h8i9j1",
  "merged": false,
  "newVersion": true
}
{
  "error": {
    "code": "invalid_input",
    "message": "title: Title is too short"
  }
}
{
  "error": {
    "code": "unauthorized",
    "message": "This API key isn't valid or was revoked"
  }
}
{
  "error": {
    "code": "plan_required",
    "message": "A custom domain needs the Pro plan. See Settings → Billing."
  }
}
{
  "error": {
    "code": "forbidden",
    "message": "This key can only read. Create a read + write key to change things."
  }
}
{
  "error": {
    "code": "not_found",
    "message": "No such post"
  }
}
{
  "error": {
    "code": "merged",
    "message": "This post was merged into another one; vote there instead"
  }
}
{
  "error": {
    "code": "rate_limited",
    "message": "Up to 600 requests a minute per key"
  }
}