Deleting card via REST Api

Ashleigh Aathar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 12, 2020

Hi all, I have a question regarding deleting a card via REST Api.

In my request, I format it as described on the Trello documentation, with the request method set to 'DELETE' and the request url being:

https://api.trello.com/1/cards/?id={cardId}&key={key}&token={token} where the values in {} are replaced with the actual values.

However, I am unable to delete the card and I receive this message via Postman:

Cannot DELETE /1/cards/?id={cardId}&key={key}&token={token}

 

Thanks and appreciate the help

 

1 answer

0 votes
Iain Dooley
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 12, 2020

@Ashleigh Aathar are you replacing {cardid} with the card id so it looks like

id=ad0s98a0df&

or are you replacing cardid with the card id so that it looks like

id={adsf09adf}&

It should be the former ... Also, are you able to fetch the card details with a GET request? That would demonstrate there are no problems generally with your syntax or access to the card

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events