Order a card
Moves a card up or down inside the area it is already in.
POST /api/data/cardOrder
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
cardId | integer | yes | The card being reordered. |
areaId | integer | yes | The area it is in. |
newIndex | integer | yes | Its new position, counting from 0. |
curl -X POST "https://boards.example.com/api/data/cardOrder" \
-H "X-API-Key: $LOKALBOARDS_KEY" \
-H "Content-Type: application/json" \
-d '{
"cardId": 501,
"areaId": 10,
"newIndex": 2
}'
For a move to a different area, use /api/data/cardMove —
it takes the area it is leaving as well, so the order is repaired at both ends.