Change the position of a preview

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-docs.kitsu.cloud/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Kitsu API MCP server": {
    "url": "https://api-docs.kitsu.cloud/mcp"
  }
}

Close
PUT /actions/preview-files/{preview_file_id}/update-position

Change the position of a preview in its revision. A revision can have several previews. You must be able to do actions on the task. A client of the project cannot use this route.

Path parameters

  • preview_file_id string(uuid) Required

    Unique identifier of the preview file

application/json

Body

  • position integer

    New position for the preview

    Minimum value is 0. Default value is 0.

Responses

  • 200 application/json

    The previews of the revision

    Hide response attributes Show response attributes object
    • id string(uuid)

      Preview file unique identifier

    • position integer

      Preview position

  • 400

    position is negative or is not an integer

  • 403

    You cannot do actions on this task

  • 404

    The preview file does not exist

PUT /actions/preview-files/{preview_file_id}/update-position
curl -X PUT "http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/update-position" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "position": 2
}'
import requests

url = "http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/update-position"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json",
    "Content-Type": "application/json"
}
params = {}
payload = {
    "position": 2
}

response = requests.put(
    url,
    headers=headers,
    params=params,
    json=payload
)

response.raise_for_status()

if response.content:
    print(response.json())
Request examples
{
  "position": 2
}
Response examples (200)
{
  "id": "a24a6ea4-ce75-4665-a070-57453082c250",
  "position": 2
}