Search code examples
apitrellowindev

Trello how to add attachments


I am trying to add an attachment to a pre-created Trello card

I know how to create the card, but so far I was not able to find how to add an attachment without providing the ID (because the card is not yet created)

in case of need : https://developers.trello.com/advanced-reference/card

I am using this to create the card :

https://api.trello.com/1/cards?key=<myKey>&token=<myToken>&name=My+new+card+name&desc=My+new+card+description&idList=<myIdList>

Solution

  • Ok I found the answer!

    Create the card -> get the ID of the card in the process -> add attachments !