Set the in/out handles 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-trim

Set the in/out frames of a preview. The extra previews of a revision have their own timeline and keep their own trim, the main preview uses the handle_in and handle_out of the shot data. Only the sent keys change, null clears a handle. Managers and supervisors without departments can use this route, like for the trim of a shot.

Path parameters

  • preview_file_id string(uuid) Required

    Unique identifier of the preview file

application/json

Body Required

  • handle_in integer | null

    First frame of the trim, null to clear it

    Minimum value is 0.

  • handle_out integer | null

    Last frame of the trim, null to clear it

    Minimum value is 0.

Responses

  • 200 application/json

    The trim of the preview

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

      Preview file unique identifier

    • handle_in integer | null
    • handle_out integer | null
  • 400

    A handle is negative or is not an integer

  • 403

    You cannot edit the trim of this shot

  • 404

    The preview file does not exist

PUT /actions/preview-files/{preview_file_id}/update-trim
curl \
 --request PUT '/api/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c250/update-trim' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{
  "handle_in": 12,
  "handle_out": 48
}'
Request examples
{
  "handle_in": 12,
  "handle_out": 48
}
Response examples (200)
{
  "id": "a24a6ea4-ce75-4665-a070-57453082c250",
  "handle_in": 12,
  "handle_out": 48
}