Trello API
  1. card
Trello API
  • action
    • deleteActionsByIdAction()
    • getActionsByIdAction()
    • updateActionsByIdAction()
    • getActionsBoardByIdAction()
    • getActionsBoardByIdActionByField()
    • getActionsCardByIdAction()
    • getActionsCardByIdActionByField()
    • getActionsDisplayByIdAction()
    • getActionsEntitiesByIdAction()
    • getActionsListByIdAction()
    • getActionsListByIdActionByField()
    • getActionsMemberByIdAction()
    • getActionsMemberByIdActionByField()
    • getActionsMemberCreatorByIdAction()
    • getActionsMemberCreatorByIdActionByField()
    • getActionsOrganizationByIdAction()
    • getActionsOrganizationByIdActionByField()
    • updateActionsTextByIdAction()
    • getActionsByIdActionByField()
  • batch
    • getBatch()
  • board
    • addBoards()
    • getBoardsByIdBoard()
    • updateBoardsByIdBoard()
    • getBoardsActionsByIdBoard()
    • getBoardsBoardStarsByIdBoard()
    • addBoardsCalendarKeyGenerateByIdBoard()
    • getBoardsCardsByIdBoard()
    • getBoardsCardsByIdBoardByFilter()
    • getBoardsCardsByIdBoardByIdCard()
    • getBoardsChecklistsByIdBoard()
    • addBoardsChecklistsByIdBoard()
    • updateBoardsClosedByIdBoard()
    • getBoardsDeltasByIdBoard()
    • updateBoardsDescByIdBoard()
    • addBoardsEmailKeyGenerateByIdBoard()
    • updateBoardsIdOrganizationByIdBoard()
    • updateBoardsLabelNamesBlueByIdBoard()
    • updateBoardsLabelNamesGreenByIdBoard()
    • updateBoardsLabelNamesOrangeByIdBoard()
    • updateBoardsLabelNamesPurpleByIdBoard()
    • updateBoardsLabelNamesRedByIdBoard()
    • updateBoardsLabelNamesYellowByIdBoard()
    • getBoardsLabelsByIdBoard()
    • addBoardsLabelsByIdBoard()
    • getBoardsLabelsByIdBoardByIdLabel()
    • getBoardsListsByIdBoard()
    • addBoardsListsByIdBoard()
    • getBoardsListsByIdBoardByFilter()
    • addBoardsMarkAsViewedByIdBoard()
    • getBoardsMembersByIdBoard()
    • updateBoardsMembersByIdBoard()
    • getBoardsMembersByIdBoardByFilter()
    • deleteBoardsMembersByIdBoardByIdMember()
    • updateBoardsMembersByIdBoardByIdMember()
    • getBoardsMembersCardsByIdBoardByIdMember()
    • getBoardsMembersInvitedByIdBoard()
    • getBoardsMembersInvitedByIdBoardByField()
    • getBoardsMembershipsByIdBoard()
    • getBoardsMembershipsByIdBoardByIdMembership()
    • updateBoardsMembershipsByIdBoardByIdMembership()
    • getBoardsMyPrefsByIdBoard()
    • updateBoardsMyPrefsEmailPositionByIdBoard()
    • updateBoardsMyPrefsIdEmailListByIdBoard()
    • updateBoardsMyPrefsShowListGuideByIdBoard()
    • updateBoardsMyPrefsShowSidebarByIdBoard()
    • updateBoardsMyPrefsShowSidebarActivityByIdBoard()
    • updateBoardsMyPrefsShowSidebarBoardActionsByIdBoard()
    • updateBoardsMyPrefsShowSidebarMembersByIdBoard()
    • updateBoardsNameByIdBoard()
    • getBoardsOrganizationByIdBoard()
    • getBoardsOrganizationByIdBoardByField()
    • addBoardsPowerUpsByIdBoard()
    • deleteBoardsPowerUpsByIdBoardByPowerUp()
    • updateBoardsPrefsBackgroundByIdBoard()
    • updateBoardsPrefsCalendarFeedEnabledByIdBoard()
    • updateBoardsPrefsCardAgingByIdBoard()
    • updateBoardsPrefsCardCoversByIdBoard()
    • updateBoardsPrefsCommentsByIdBoard()
    • updateBoardsPrefsInvitationsByIdBoard()
    • updateBoardsPrefsPermissionLevelByIdBoard()
    • updateBoardsPrefsSelfJoinByIdBoard()
    • updateBoardsPrefsVotingByIdBoard()
    • updateBoardsSubscribedByIdBoard()
    • getBoardsByIdBoardByField()
  • card
    • addCards()
      POST
    • deleteCardsByIdCard()
      DELETE
    • getCardsByIdCard()
      GET
    • updateCardsByIdCard()
      PUT
    • getCardsActionsByIdCard()
      GET
    • addCardsActionsCommentsByIdCard()
      POST
    • deleteCardsActionsCommentsByIdCardByIdAction()
      DELETE
    • updateCardsActionsCommentsByIdCardByIdAction()
      PUT
    • getCardsAttachmentsByIdCard()
      GET
    • addCardsAttachmentsByIdCard()
      POST
    • deleteCardsAttachmentsByIdCardByIdAttachment()
      DELETE
    • getCardsAttachmentsByIdCardByIdAttachment()
      GET
    • getCardsBoardByIdCard()
      GET
    • getCardsBoardByIdCardByField()
      GET
    • getCardsCheckItemStatesByIdCard()
      GET
    • updateCardsChecklistCheckItemByIdCardByIdChecklistCurrentByIdCheckItem()
      PUT
    • addCardsChecklistCheckItemByIdCardByIdChecklist()
      POST
    • deleteCardsChecklistCheckItemByIdCardByIdChecklistByIdCheckItem()
      DELETE
    • addCardsChecklistCheckItemConvertToCardByIdCardByIdChecklistByIdCheckItem()
      POST
    • updateCardsChecklistCheckItemNameByIdCardByIdChecklistByIdCheckItem()
      PUT
    • updateCardsChecklistCheckItemPosByIdCardByIdChecklistByIdCheckItem()
      PUT
    • updateCardsChecklistCheckItemStateByIdCardByIdChecklistByIdCheckItem()
      PUT
    • getCardsChecklistsByIdCard()
      GET
    • addCardsChecklistsByIdCard()
      POST
    • deleteCardsChecklistsByIdCardByIdChecklist()
      DELETE
    • updateCardsClosedByIdCard()
      PUT
    • updateCardsDescByIdCard()
      PUT
    • updateCardsDueByIdCard()
      PUT
    • updateCardsIdAttachmentCoverByIdCard()
      PUT
    • updateCardsIdBoardByIdCard()
      PUT
    • addCardsIdLabelsByIdCard()
      POST
    • deleteCardsIdLabelsByIdCardByIdLabel()
      DELETE
    • updateCardsIdListByIdCard()
      PUT
    • addCardsIdMembersByIdCard()
      POST
    • updateCardsIdMembersByIdCard()
      PUT
    • deleteCardsIdMembersByIdCardByIdMember()
      DELETE
    • addCardsLabelsByIdCard()
      POST
    • updateCardsLabelsByIdCard()
      PUT
    • deleteCardsLabelsByIdCardByColor()
      DELETE
    • getCardsListByIdCard()
      GET
    • getCardsListByIdCardByField()
      GET
    • addCardsMarkAssociatedNotificationsReadByIdCard()
      POST
    • getCardsMembersByIdCard()
      GET
    • getCardsMembersVotedByIdCard()
      GET
    • addCardsMembersVotedByIdCard()
      POST
    • deleteCardsMembersVotedByIdCardByIdMember()
      DELETE
    • updateCardsNameByIdCard()
      PUT
    • updateCardsPosByIdCard()
      PUT
    • getCardsStickersByIdCard()
      GET
    • addCardsStickersByIdCard()
      POST
    • deleteCardsStickersByIdCardByIdSticker()
      DELETE
    • getCardsStickersByIdCardByIdSticker()
      GET
    • updateCardsStickersByIdCardByIdSticker()
      PUT
    • updateCardsSubscribedByIdCard()
      PUT
    • getCardsByIdCardByField()
      GET
  • checklist
    • addChecklists()
    • deleteChecklistsByIdChecklist()
    • getChecklistsByIdChecklist()
    • updateChecklistsByIdChecklist()
    • getChecklistsBoardByIdChecklist()
    • getChecklistsBoardByIdChecklistByField()
    • getChecklistsCardsByIdChecklist()
    • getChecklistsCardsByIdChecklistByFilter()
    • getChecklistsCheckItemsByIdChecklist()
    • addChecklistsCheckItemsByIdChecklist()
    • deleteChecklistsCheckItemsByIdChecklistByIdCheckItem()
    • getChecklistsCheckItemsByIdChecklistByIdCheckItem()
    • updateChecklistsIdCardByIdChecklist()
    • updateChecklistsNameByIdChecklist()
    • updateChecklistsPosByIdChecklist()
    • getChecklistsByIdChecklistByField()
  • label
    • addLabels()
    • deleteLabelsByIdLabel()
    • getLabelsByIdLabel()
    • updateLabelsByIdLabel()
    • getLabelsBoardByIdLabel()
    • getLabelsBoardByIdLabelByField()
    • updateLabelsColorByIdLabel()
    • updateLabelsNameByIdLabel()
  • list
    • addLists()
    • getListsByIdList()
    • updateListsByIdList()
    • getListsActionsByIdList()
    • addListsArchiveAllCardsByIdList()
    • getListsBoardByIdList()
    • getListsBoardByIdListByField()
    • getListsCardsByIdList()
    • addListsCardsByIdList()
    • getListsCardsByIdListByFilter()
    • updateListsClosedByIdList()
    • updateListsIdBoardByIdList()
    • addListsMoveAllCardsByIdList()
    • updateListsNameByIdList()
    • updateListsPosByIdList()
    • updateListsSubscribedByIdList()
    • getListsByIdListByField()
  • member
    • getMembersByIdMember()
    • updateMembersByIdMember()
    • getMembersActionsByIdMember()
    • addMembersAvatarByIdMember()
    • updateMembersAvatarSourceByIdMember()
    • updateMembersBioByIdMember()
    • getMembersBoardBackgroundsByIdMember()
    • addMembersBoardBackgroundsByIdMember()
    • deleteMembersBoardBackgroundsByIdMemberByIdBoardBackground()
    • getMembersBoardBackgroundsByIdMemberByIdBoardBackground()
    • updateMembersBoardBackgroundsByIdMemberByIdBoardBackground()
    • getMembersBoardStarsByIdMember()
    • addMembersBoardStarsByIdMember()
    • deleteMembersBoardStarsByIdMemberByIdBoardStar()
    • getMembersBoardStarsByIdMemberByIdBoardStar()
    • updateMembersBoardStarsByIdMemberByIdBoardStar()
    • updateMembersBoardStarsIdBoardByIdMemberByIdBoardStar()
    • updateMembersBoardStarsPosByIdMemberByIdBoardStar()
    • getMembersBoardsByIdMember()
    • getMembersBoardsByIdMemberByFilter()
    • getMembersBoardsInvitedByIdMember()
    • getMembersBoardsInvitedByIdMemberByField()
    • getMembersCardsByIdMember()
    • getMembersCardsByIdMemberByFilter()
    • getMembersCustomBoardBackgroundsByIdMember()
    • addMembersCustomBoardBackgroundsByIdMember()
    • deleteMembersCustomBoardBackgroundsByIdMemberByIdBoardBackground()
    • getMembersCustomBoardBackgroundsByIdMemberByIdBoardBackground()
    • updateMembersCustomBoardBackgroundsByIdMemberByIdBoardBackground()
    • getMembersCustomEmojiByIdMember()
    • addMembersCustomEmojiByIdMember()
    • getMembersCustomEmojiByIdMemberByIdCustomEmoji()
    • getMembersCustomStickersByIdMember()
    • addMembersCustomStickersByIdMember()
    • deleteMembersCustomStickersByIdMemberByIdCustomSticker()
    • getMembersCustomStickersByIdMemberByIdCustomSticker()
    • getMembersDeltasByIdMember()
    • updateMembersFullNameByIdMember()
    • updateMembersInitialsByIdMember()
    • getMembersNotificationsByIdMember()
    • getMembersNotificationsByIdMemberByFilter()
    • addMembersOneTimeMessagesDismissedByIdMember()
    • getMembersOrganizationsByIdMember()
    • getMembersOrganizationsByIdMemberByFilter()
    • getMembersOrganizationsInvitedByIdMember()
    • getMembersOrganizationsInvitedByIdMemberByField()
    • updateMembersPrefsColorBlindByIdMember()
    • updateMembersPrefsLocaleByIdMember()
    • updateMembersPrefsMinutesBetweenSummariesByIdMember()
    • getMembersSavedSearchesByIdMember()
    • addMembersSavedSearchesByIdMember()
    • deleteMembersSavedSearchesByIdMemberByIdSavedSearch()
    • getMembersSavedSearchesByIdMemberByIdSavedSearch()
    • updateMembersSavedSearchesByIdMemberByIdSavedSearch()
    • updateMembersSavedSearchesNameByIdMemberByIdSavedSearch()
    • updateMembersSavedSearchesPosByIdMemberByIdSavedSearch()
    • updateMembersSavedSearchesQueryByIdMemberByIdSavedSearch()
    • getMembersTokensByIdMember()
    • updateMembersUsernameByIdMember()
    • getMembersByIdMemberByField()
  • notification
    • addNotificationsAllRead()
    • getNotificationsByIdNotification()
    • updateNotificationsByIdNotification()
    • getNotificationsBoardByIdNotification()
    • getNotificationsBoardByIdNotificationByField()
    • getNotificationsCardByIdNotification()
    • getNotificationsCardByIdNotificationByField()
    • getNotificationsDisplayByIdNotification()
    • getNotificationsEntitiesByIdNotification()
    • getNotificationsListByIdNotification()
    • getNotificationsListByIdNotificationByField()
    • getNotificationsMemberByIdNotification()
    • getNotificationsMemberByIdNotificationByField()
    • getNotificationsMemberCreatorByIdNotification()
    • getNotificationsMemberCreatorByIdNotificationByField()
    • getNotificationsOrganizationByIdNotification()
    • getNotificationsOrganizationByIdNotificationByField()
    • updateNotificationsUnreadByIdNotification()
    • getNotificationsByIdNotificationByField()
  • organization
    • addOrganizations()
    • deleteOrganizationsByIdOrg()
    • getOrganizationsByIdOrg()
    • updateOrganizationsByIdOrg()
    • getOrganizationsActionsByIdOrg()
    • getOrganizationsBoardsByIdOrg()
    • getOrganizationsBoardsByIdOrgByFilter()
    • getOrganizationsDeltasByIdOrg()
    • updateOrganizationsDescByIdOrg()
    • updateOrganizationsDisplayNameByIdOrg()
    • deleteOrganizationsLogoByIdOrg()
    • addOrganizationsLogoByIdOrg()
    • getOrganizationsMembersByIdOrg()
    • updateOrganizationsMembersByIdOrg()
    • getOrganizationsMembersByIdOrgByFilter()
    • deleteOrganizationsMembersByIdOrgByIdMember()
    • updateOrganizationsMembersByIdOrgByIdMember()
    • deleteOrganizationsMembersAllByIdOrgByIdMember()
    • getOrganizationsMembersCardsByIdOrgByIdMember()
    • updateOrganizationsMembersDeactivatedByIdOrgByIdMember()
    • getOrganizationsMembersInvitedByIdOrg()
    • getOrganizationsMembersInvitedByIdOrgByField()
    • getOrganizationsMembershipsByIdOrg()
    • getOrganizationsMembershipsByIdOrgByIdMembership()
    • updateOrganizationsMembershipsByIdOrgByIdMembership()
    • updateOrganizationsNameByIdOrg()
    • deleteOrganizationsPrefsAssociatedDomainByIdOrg()
    • updateOrganizationsPrefsAssociatedDomainByIdOrg()
    • updateOrganizationsPrefsBoardVisibilityRestrictOrgByIdOrg()
    • updateOrganizationsPrefsBoardVisibilityRestrictPrivateByIdOrg()
    • updateOrganizationsPrefsBoardVisibilityRestrictPublicByIdOrg()
    • updateOrganizationsPrefsExternalMembersDisabledByIdOrg()
    • updateOrganizationsPrefsGoogleAppsVersionByIdOrg()
    • deleteOrganizationsPrefsOrgInviteRestrictByIdOrg()
    • updateOrganizationsPrefsOrgInviteRestrictByIdOrg()
    • updateOrganizationsPrefsPermissionLevelByIdOrg()
    • updateOrganizationsWebsiteByIdOrg()
    • getOrganizationsByIdOrgByField()
  • search
    • getSearch()
    • getSearchMembers()
  • session
    • addSessions()
    • getSessionsSocket()
    • updateSessionsByIdSession()
    • updateSessionsStatusByIdSession()
  • token
    • deleteTokensByToken()
    • getTokensByToken()
    • getTokensMemberByToken()
    • getTokensMemberByTokenByField()
    • getTokensWebhooksByToken()
    • addTokensWebhooksByToken()
    • updateTokensWebhooksByToken()
    • deleteTokensWebhooksByTokenByIdWebhook()
    • getTokensWebhooksByTokenByIdWebhook()
    • getTokensByTokenByField()
  • type
    • getTypesById()
  • webhook
    • addWebhooks()
    • updateWebhooks()
    • deleteWebhooksByIdWebhook()
    • getWebhooksByIdWebhook()
    • updateWebhooksByIdWebhook()
    • updateWebhooksActiveByIdWebhook()
    • updateWebhooksCallbackURLByIdWebhook()
    • updateWebhooksDescriptionByIdWebhook()
    • updateWebhooksIdModelByIdWebhook()
    • getWebhooksByIdWebhookByField()
  1. card

addCards()

POST
/cards
card
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.trello.com/cards?key&token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "closed": "string",
    "desc": "string",
    "due": "string",
    "fileSource": "string",
    "idAttachmentCover": "string",
    "idBoard": "string",
    "idCardSource": "string",
    "idLabels": "string",
    "idList": "string",
    "idMembers": "string",
    "keepFromSource": "string",
    "labels": "string",
    "name": "string",
    "pos": "string",
    "subscribed": "string",
    "urlSource": "string"
}'
响应示例响应示例
200 - 示例 1
{}

请求参数

Query 参数
key
string 
必需
Generate your application key
token
string 
必需
Getting a token from a user
Body 参数application/json
closed
string 
可选
true or false
desc
string 
可选
a string with a length from 0 to 16384
due
string 
可选
A date, or null
fileSource
string 
A file
可选
idAttachmentCover
string 
可选
Id of the image attachment of this card to use as its cover, or null for no cover
idBoard
string 
可选
id of the board the card should be moved to
idCardSource
string 
可选
The id of the card to copy into a new card.
idLabels
string 
可选
A comma-separated list of objectIds, 24-character hex strings
idList
string 
可选
id of the list that the card should be added to
idMembers
string 
可选
A comma-separated list of objectIds, 24-character hex strings
keepFromSource
string 
可选
Properties of the card to copy over from the source.
labels
string 
可选
all or a comma-separated list of: blue, green, orange, purple, red or yellow
name
string 
可选
The name of the new card. It isn't required if the name is being copied from provided by a URL, file or card that is being copied.
pos
string 
可选
A position. top , bottom , or a positive number.
subscribed
string 
可选
true or false
urlSource
string 
可选
A URL starting with http:// or https:// or null
示例

返回响应

🟢200成功
application/json
Success
Body
object {0}
🟠400请求有误

【Trello】API开发者 微信交流群

用微信扫右侧二维码,加入【Trello】API开发者 交流群,互助沟通

扫码加入交流群
上一页
getBoardsByIdBoardByField()
下一页
deleteCardsByIdCard()
Built with