Skip to content

Type Alias: UpdateCard ​

ts
type UpdateCard = object;

Defined in: parameters/updateCard.ts:94

Type Declaration ​

address? ​

ts
optional address?: string;

For use with/by the Map View

closed? ​

ts
optional closed?: boolean;

Whether the card should be archived (closed: true)

coordinates? ​

ts
optional coordinates?: string;

For use with/by the Map View. Should be latitude,longitude

cover? ​

ts
optional cover?: object;

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:

And vice versa, setting it to dark will make the text on the card cover light:

cover.value? ​

ts
optional value?: object;

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.

cover.value.brightness? ​

ts
optional brightness?: string & object | "light" | "dark";

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

cover.value.color? ​

ts
optional color?: 
  | string & object
  | "green"
  | "yellow"
  | "orange"
  | "red"
  | "purple"
  | "blue"
  | "sky"
  | "lime"
  | "pink"
  | "black";

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

cover.value.url? ​

ts
optional url?: string;

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

desc? ​

ts
optional desc?: string;

The new description for the card

due? ​

ts
optional due?: string | null;

When the card is due, or null

dueComplete? ​

ts
optional dueComplete?: boolean;

Whether the status of the card is complete

id ​

ts
id: string;

The ID of the Card

idAttachmentCover? ​

ts
optional idAttachmentCover?: string;

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

idBoard? ​

ts
optional idBoard?: string;

The ID of the board the card should be on

idLabels? ​

ts
optional idLabels?: string;

Comma-separated list of label IDs

idList? ​

ts
optional idList?: string;

The ID of the list the card should be in

idMembers? ​

ts
optional idMembers?: string;

Comma-separated list of member IDs

locationName? ​

ts
optional locationName?: string;

For use with/by the Map View

name? ​

ts
optional name?: string;

The new name for the card

pos? ​

ts
optional pos?: number | "top" | "bottom" | string & object;

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

start? ​

ts
optional start?: string | null;

The start date of a card, or null

subscribed? ​

ts
optional subscribed?: boolean;

Whether the member is should be subscribed to the card