Skip to main content

setCardMilestone

PUT 

/cards/:card_id/milestone/:milestone_id

Puts an actor-visible card in a project milestone. Take milestone ids from GET /projects or GET /projects/{project_id}. A desired-state write: no If-Match and no Idempotency-Key, and a card already in that milestone answers the same way with nothing written. A card in no project joins the milestone's project. A card in ANOTHER project is refused with 422 project_transfer_required, naming both projects and the milestone the card would leave, unless the body sets transfer_project: true; the confirmed write is reported as project_transfer. The milestone must be an active milestone of an active project the caller can see: an unknown, archived or invisible one is the same 422 validation_error, so a milestone id cannot be probed. Answers 404 when the caller cannot open the card or when projects and milestones are not enabled, 403 when the caller has no standing in the card's project, and 409 when the card kept changing while the write was applied (retry).

Request​

Responses​

The card's project and milestone after the call.

Response Headers
    X-Request-Id
    Cache-Control

    Responses must use Cache-Control: no-store.