Tuti APIDocs

Move an article

Move a docs article within its collection, or into another; the others keep their order around it. Readers list articles in this order

Needs a read + write key.

POST/articles/{slug}/reorder

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

  • collectionstring · nullable · 1–80 characters

    The collection to move it into (its slug), null for none; left out, the one it's in. A move to another collection goes live at once, on a published article too (its unpublished changes move with it), and is kept as a version

  • positioninteger · 0–10000

    Its place there, 0 first; left out, last

Responses

  • 200The article, moved

    application/json · Article

    The article, moved

    • 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)

  • 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

  • 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/reorder' \
  --request POST \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "collection": "basics",
  "position": 0
}'
const response = await fetch("https://tuti.so/api/v1/articles/getting-started/reorder", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "collection": "basics",
    "position": 0
  }),
});
const text = await response.text();
import requests

response = requests.post(
    "https://tuti.so/api/v1/articles/getting-started/reorder",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"collection\": \"basics\",\n  \"position\": 0\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"
}
{
  "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": "rate_limited",
    "message": "Up to 600 requests a minute per key"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "Something went wrong"
  }
}