Tuti APIAPI references

Update an API reference

Change an API reference: the fields given, the rest kept. An operation is off the help center when it's hidden or a group it's in is. In groupOrder, hide, show, hideGroups and showGroups, a key the reference doesn't have is refused.

Needs a read + write key.

PATCH/api-references/{slug}

Authorization Bearer token

Path parameters

  • slugstring · 1–80 charactersrequired

    The API reference's slug: its address in the docs

Body

application/json · object · required

  • namestring · 1–80 characters

    Its name in the docs' tree; its address stays

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

    A new address: lowercase letters, digits and hyphens, one no tab, collection, article or other reference has (409 otherwise)

  • tabstring · 1–80 characters

    The tab it moves to, by slug: it goes last there

  • publishedboolean

    Whether it's on the help center

  • treeStylestring

    How it sits in the docs' tree: each group a folder (folders) or a heading (headings), or one entry that lists the operations

    One of"folders""headings""entry"

  • groupOrderarray of string · at most 10000 items

    The groups' order, by their keys: the ones left out come after them

    Each item: at most 2000 characters

  • baseUrlstring · nullable · at most 2000 characters

    Where requests go when the spec's servers have no host: an https address; null removes it

  • tryItboolean

    Whether readers can send requests from its pages

  • hidearray of string · at most 10000 items

    Operations to take off the help center, by their keys (GET /posts/{})

    Each item: at most 2000 characters

  • showarray of string · at most 10000 items

    Operations to put back on the help center, by their keys

    Each item: at most 2000 characters

  • hideGroupsarray of string · at most 10000 items

    Whole groups to take off the help center, by their keys (hide takes operations by theirs)

    Each item: at most 2000 characters

  • showGroupsarray of string · at most 10000 items

    Whole groups to put back on the help center, by their keys

    Each item: at most 2000 characters

  • seenboolean or array of string

    Says the team has looked: true, and nothing is new any more; or the keys of the operations it saw, and what a read added since is still new (a key it doesn't have is passed over)

    Show 2 options
    • Option 1boolean

      One oftrue

    • Option 2array of string · at most 10000 items

      Each item: at most 2000 characters

Responses

  • 200The API reference as changed

    application/json · object

    The API reference as changed

    • slugstringrequired

      Its address in the docs (/docs/<slug>): from its name when it was added, and kept when it's renamed

    • namestringrequired

      Its name in the docs' tree

    • tabstring · nullablerequired

      Its tab's slug; null when the docs have no tabs

    • formatstringrequired

      What the spec is: OpenAPI, or a GraphQL schema

      One of"openapi""graphql"

    • sourcestringrequired

      Where the spec is read from: text uploaded and replaced by hand (apiReferences.replace), an address (sourceUrl) or a file on GitHub (repoId, path, ref), read again every 6 hours and on apiReferences.sync

      One of"upload""url""github"

    • sourceUrlstring · nullablerequired

      The address a url reference's spec is read from, as a URL parser writes it; null otherwise

    • repoIdinteger · nullablerequired

      GitHub's id for a github reference's repository (githubRepositories.list); null otherwise

    • pathstring · nullablerequired

      The file's path in that repository; null otherwise

    • refstring · nullablerequired

      The branch the file is read on; null otherwise

    • baseUrlstring · nullablerequired

      Where requests go when the spec's servers have no host; null when none is set

    • treeStylestringrequired

      How it sits in the docs' tree: each group a folder (folders) or a heading (headings), or one entry that lists the operations

      One of"folders""headings""entry"

    • tryItbooleanrequired

      Whether readers can send requests from its pages

    • countsobjectrequired

      Its operations, counted

      Show 3 properties
      • operationsintegerrequired

        How many operations the spec has

      • onHelpCenterintegerrequired

        How many of them are on the help center

      • newintegerrequired

        How many a read added since the team last looked

    • publishedbooleanrequired

      Whether it's on the help center: a draft is on it nowhere

    • syncedAtstringrequired

      When the spec was last read successfully

    • syncTriedAtstringrequired

      When its source was last read, whether that worked or not

    • changedAtstringrequired

      When a read last changed what the spec has

    • syncErrorstring · nullablerequired

      Why the last read failed, or found no operations, so the pages stayed as they were; null once one works

  • 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

  • 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/api-references/public-api' \
  --request PATCH \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "treeStyle": "headings",
  "hide": [
    "DELETE /posts/{}"
  ],
  "hideGroups": [
    "Internal"
  ]
}'
const response = await fetch("https://tuti.so/api/v1/api-references/public-api", {
  method: "PATCH",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "treeStyle": "headings",
    "hide": [
      "DELETE /posts/{}"
    ],
    "hideGroups": [
      "Internal"
    ]
  }),
});
const text = await response.text();
import requests

response = requests.patch(
    "https://tuti.so/api/v1/api-references/public-api",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"treeStyle\": \"headings\",\n  \"hide\": [\n    \"DELETE /posts/{}\"\n  ],\n  \"hideGroups\": [\n    \"Internal\"\n  ]\n}",
)
print(response.text)
{
  "slug": "public-api",
  "name": "Public API",
  "tab": "developers",
  "format": "openapi",
  "source": "url",
  "sourceUrl": "https://api.example.com/openapi.json",
  "repoId": null,
  "path": null,
  "ref": null,
  "baseUrl": "https://api.example.com",
  "treeStyle": "folders",
  "tryIt": true,
  "counts": {
    "operations": 24,
    "onHelpCenter": 22,
    "new": 2
  },
  "published": true,
  "syncedAt": "2026-11-19T09:00:00.000Z",
  "syncTriedAt": "2026-11-19T09:00:00.000Z",
  "changedAt": "2026-11-18T16:30:00.000Z",
  "syncError": null
}
{
  "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": "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"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "Something went wrong"
  }
}