Skip to content

Type Alias: CreateCard ​

ts
type CreateCard = object;

Defined in: parameters/createCard.ts:60

Type Declaration ​

address? ​

ts
optional address?: string;

For use with/by the Map View

cardRole? ​

ts
optional cardRole?: "link" | string & object | "board" | "separator" | "mirror" | null;

For displaying cards in different ways based on the card name. Board cards must have a name that is a link to a Trello board. Mirror cards must have a name that is a link to a Trello card.

coordinates? ​

ts
optional coordinates?: string;

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

desc? ​

ts
optional desc?: string;

The description for the card

due? ​

ts
optional due?: string;

A due date for the card

dueComplete? ​

ts
optional dueComplete?: boolean;

Whether the status of the card is complete

fileSource? ​

ts
optional fileSource?: string;

idCardSource? ​

ts
optional idCardSource?: string;

The ID of a card to copy into the new card

idLabels? ​

ts
optional idLabels?: string[];

Comma-separated list of label IDs to add to the card

idList ​

ts
idList: string;

The ID of the list the card should be created in

idMembers? ​

ts
optional idMembers?: string[];

Comma-separated list of member IDs to add to the card

keepFromSource? ​

ts
optional keepFromSource?: 
  | "all"
  | "start"
  | "labels"
  | string & object
  | "due"
  | "attachments"
  | "checklists"
  | "customFields"
  | "stickers"
  | "comments"
  | "members";

If using idCardSource you can specify which properties to copy over. all or comma-separated list of: attachments,checklists,customFields,comments,due,start,labels,members,start,stickers

locationName? ​

ts
optional locationName?: string;

For use with/by the Map View

mimeType? ​

ts
optional mimeType?: string;

The mimeType of the attachment. Max length 256

name? ​

ts
optional name?: string;

The name for the card

pos? ​

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

The position of the new card. top, bottom, or a positive float

start? ​

ts
optional start?: string | null;

The start date of a card, or null

urlSource? ​

ts
optional urlSource?: string;

A URL starting with http:// or https://. The URL will be attached to the card upon creation.