Sort Deck Cards
Sets the order of cards within a deck.
Request Example
Section titled “Request Example”curl --request POST \ --url 'https://lxp.prod.api.toolzz.media/admin/decks/sort/cards' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "deckId": 156, "cards": [ { "card": 8708 }, { "card": 8709 }, { "card": 8710 } ] }'Response Example
Section titled “Response Example”{ "success": true}Request description
Section titled “Request description”| Parameter | Type | Description | Required |
|---|---|---|---|
deckId | number | Deck ID. | Yes |
cards | array | Ordered list of { "card": <id> }. | Yes |
Security
Section titled “Security”- Admin only; deck must belong to the institution.