Move a card
Moves the card into list_id (its own list, to reorder it) between
the neighbours named in placement. The list must be on the card's
board.
The review gate applies:
| Move | Result |
|---|---|
| Into the review list | The card starts waiting for review. |
| Out of the review list while waiting | Refused, 409 REVIEW_PENDING: approve or reject it. |
| Into the done list, on a board with a review list | Only if approved; otherwise 409 REVIEW_REQUIRED. |
| Anywhere else | Any approval the card had is dropped. |
Requires the board:card:write scope.
Authorization
Parameters
Path parameters
cardIDstring requiredThe card's ID.
Request body required
list_idstring requiredplacementPlacementShow Placement properties
afterstringThe ID of the item it should follow. Empty means the top.beforestringThe ID of the item it should precede. Empty means the bottom.tostringAn end of the list. Any other value is ignored.
Responses
204
The card was moved.
400
The body is not JSON for this endpoint, or carries a field it does not
know (INVALID_BODY), or a field breaks a rule (VALIDATION_ERROR;
the message says which).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
404
The card is not one the caller can see, or list_id is not a list on the card's board (NOT_FOUND).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
409
The review gate refused the move (REVIEW_PENDING,
REVIEW_REQUIRED), or the named neighbours have moved
(STALE_PLACEMENT).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
429
Too many requests (RATE_LIMITED). Wait for Retry-After seconds.
Retry-AfterintegerSeconds to wait before retrying.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
Example request
curl -X POST 'https://evohub.io/api/v1/board/cards/crd_9f2e4d6c8b0a1e3f5d7c9b1a3e5f7d90/move' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"list_id": "lst_3c4d5e6f7a8b49c0d1e2f3a4b5c6d7e8",
"placement": {
"to": "bottom"
}
}'
