Write

set_card_cover

Set or clear a card's cover image from the outline's media library.


Parameters

NameTypeRequiredDescription
outlineIdstring—Outline ID. Defaults to your own outline.
stackIdstringYesID of the stack containing the card.
cardIdstringYesID of the card to update. Get from list_cards.
mediaIdstring | nullYesMedia ID from list_imported_media, or null to remove the cover.
forceHorizontalFitboolean—true = show the whole landscape photo (fit) instead of crop-to-fill.
ifUpdatedAtstring—Optional optimistic-concurrency guard: the outline updatedAt you last read (from get_profile or a previous write's response). If the outline changed since, the call fails with CONFLICT and nothing is written.

Response

FieldTypeWhat it means
outlineIdstringResolved outline ID.
stackIdstringThe stack the card belongs to.
cardIdstringThe card that was updated.
mediaIdstring | nullThe applied media ID, or null if cleared.

Example

Request

json
{ "stackId": "stack_abc", "cardId": "card_xyz789", "mediaId": "media_123" }

Response

json
{ "outlineId": "42", "stackId": "stack_abc", "cardId": "card_xyz789", "mediaId": "media_123" }