Write

reorder_cards

Moves a card one position up or down within its stack. Clamps at edges — already at top or bottom returns a no-op, not an error.


Parameters

NameTypeRequiredDescription
outlineIdstringOutline ID. Defaults to your own outline.
stackIdstringYesID of the stack containing the card.
cardIdstringYesID of the card to move.
direction"up" | "down"YesMove the card up or down within the stack.

Response

Moved

FieldTypeWhat it means
outlineIdstringResolved outline ID.
moved.stackIdstringThe stack the card was moved within.
moved.cardIdstringThe card that was moved.
moved.directionstringThe direction it was moved.

No-op (already at edge)

FieldTypeWhat it means
outlineIdstringResolved outline ID.
noOptrueIndicates the card was already at the edge.
messagestring"Card is already at the top/bottom of the stack."

Example

Request

json
{ "stackId": "stack_abc", "cardId": "card_xyz789", "direction": "up" }

Response

json
{ "outlineId": "42", "moved": { "stackId": "stack_abc", "cardId": "card_xyz789", "direction": "up" } }

When to use

When the creator wants a specific card higher or lower in a stack, or when building a profile and you want to put the most important card first. Call reorder_cards once per move — to move a card multiple positions, call it multiple times.


Gotchas

Watch out

  • This moves one step at a time, not to an absolute position. To move a card to the top, call it repeatedly until noOp:true is returned.
  • A noOp response is not an error — the card is simply already at that edge.
  • Get stackId and cardId from list_cards first.
  • Reorder events are logged as taste signals — frequent reordering signals that sequencing matters to this creator (visible in get_taste_fingerprint).