Reindent Todo
Indent (delta=+1) or outdent (delta=-1) a step, moving its subtree with it.
Lets the user change a step’s nesting level from the UI (drag only reorders within a level). Invalid moves (outdent a top-level step, or indent with no step above to nest under) are a no-op and return the unchanged list.
Args:
payload: {delta: +1 | -1}.
user: Authenticated owner.
thread_id: Target conversation.
todo_id: The step (subtree root) to re-level.
db: Database session.
Returns: The full todo list after the move.
Authorizations
A personal access token (haico_pat_...), created under Profile → API keys. Send it as Authorization: Bearer <key>. The browser session JWT is also accepted but is an internal mechanism and is not part of the public contract.
Path Parameters
1x >= 1Body
Payload for indenting/outdenting a todo (changing its nesting level).