Trello.js - API library
    Preparing search index...

    Interface UpdateCard

    interface UpdateCard {
        address?: string;
        closed?: boolean;
        coordinates?: string;
        cover?: { value?: { brightness?: string; color?: string; url?: string } };
        desc?: string;
        due?: string;
        dueComplete?: boolean;
        id: string;
        idAttachmentCover?: string;
        idBoard?: string;
        idLabels?: string[];
        idList?: string;
        idMembers?: string[];
        locationName?: string;
        name?: string;
        pos?: number | "top" | "bottom";
        subscribed?: boolean;
    }
    Index

    Properties

    address?: string

    For use with/by the Map Power-Up

    closed?: boolean

    Whether the card should be archived (closed: true)

    coordinates?: string

    For use with/by the Map Power-Up. Should be latitude,longitude

    cover?: { value?: { brightness?: string; color?: string; url?: string } }

    Updates the card's cover

    | Option | Values | About |
     |--------|--------|-------|
     | color | `pink`, `yellow`, `lime`, `blue`, `black`, `orange`, `red`, `purple`, `sky`, `green` | Makes the cover a solid color . |
     | brightness | `dark`, `light` | Determines whether the text on the cover should be dark or light.
     | url | An unsplash URL: https://images.unsplash.com | Used if making an image the cover. Only Unsplash URLs work.
     | idAttachment | ID of an attachment on the card | Used if setting an attached image as the cover. |
     | size | `normal`, `full` | Determines whether to show the card name on the cover, or below it. |
    
     `brightness` can be sent alongside any of the other parameters, but all of the other parameters are mutually exclusive; you can not have the cover be a `color` and an `idAttachment` at the same time.
    
     On the brightness options, setting it to light will make the text on the card cover dark:
     ![](https://developer.atlassian.com/cloud/trello/images/rest/cards/cover-brightness-dark.png)
    
     And vice versa, setting it to dark will make the text on the card cover light:
     ![](https://developer.atlassian.com/cloud/trello/images/rest/cards/cover-brightness-light.png)
    

    Type declaration

    • Optionalvalue?: { brightness?: string; color?: string; url?: string }

      An object containing information regarding the card's cover brightness can be sent alongside any of the other parameters, but all of the other parameters are mutually exclusive; you can not have the cover be a color and an idAttachment at the same time.

      • Optionalbrightness?: string

        Determines whether the text on the cover should be dark or light. Setting it to light will make the text on the card cover dark. And vice versa, setting it to dark will make the text on the card cover light

      • Optionalcolor?: string

        One of: pink, yellow, lime, blue, black, orange, red, purple, sky, green

      • Optionalurl?: string

        Used if making an image the cover. Only Unsplash URLs (https://images.unsplash.com/) work.

    desc?: string

    The new description for the card

    due?: string

    When the card is due, or null

    dueComplete?: boolean

    Whether the due date should be marked complete

    id: string

    The ID of the Card

    idAttachmentCover?: string

    The ID of the image attachment the card should use as its cover, or null for none

    idBoard?: string

    The ID of the board the card should be on

    idLabels?: string[]

    Comma-separated list of label IDs

    idList?: string

    The ID of the list the card should be in

    idMembers?: string[]

    Comma-separated list of member IDs

    locationName?: string

    For use with/by the Map Power-Up

    name?: string

    The new name for the card

    pos?: number | "top" | "bottom"

    The position of the card in its list. top, bottom, or a positive float

    subscribed?: boolean

    Whether the member is should be subscribed to the card