DELETE request doesn't exist? Roblox --> Trello

I’ve been attempting a trello roblox system as I have been trying to expand my knowledge on HttpService and other API’s. Atm, I have integrated one of my admin systems into it, and I wanted to add a way to delete a card. I checked the API, and it stated that you needed a “DELETE” request. Before, it was only POST (PostAsync) or GET (GetAsync) requests. And I combed through the HttpService API Doc, and found nothing about it.
https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-delete

So my main problem leads back to: How would I contact the API with a delete request, if I can only use POST or GET requests? Should I send it as a POST request with “DELETE” in the Data? Somehow like the Python language does this?
image
Any help is greatly appreciated.

Well if you’re doing it through Roblox, why not just send a DELETE request instead of a post or get? I don’t really understand the limitation here.

Use RequestAsync and just use “DELETE” for the method

So this seems to be the likely solution, but, when I try this, I receive the Unable to cast to dictionary error for the request.

local HS = game:GetService("HttpService") 			
HS:RequestAsync("https://api.trello.com/1/cards/{Id}?key={mykey}&token={mytokenyoucanthavethis}", "DELETE")

You’re not using RequestAsync properly. Read the docs.

1 Like