Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Trello api - editing a description of an existing card?

This is my current code:

function trello:SetDescription(cardId, msg)
	local url = "https://api.trello.com/1/cards/" ..cardId.. "/desc" ..addon
	local send = { value = msg }
	
	local data = httpService:JSONEncode(send)
	return httpService:PostAsync(url, data)
end

And I'm currently receiving a HTTP 404 not found, the card exists as for when I go to the link from print(URL) it gives shows me json text with that card, but obviously, something is wrong.

The original model does not contain a SetDescription; https://www.roblox.com/library/214265621/Trello-API

Also, second question on the Trello API docs here what do the "PUT" "DELETE" etc represent? What are the differences in what you need "to do"?

1 answer

Sorry the comment thingy does not show up for me

Have you given it permission to do it when you got your api key?

3 comments

0

With the trelloapi she/he is currently using, the key does indeed have read/write permissions, as that's what almost every function in the api needs.

0

Yes there is permission otherwise there would be an authorized error rather than a 404 HTTP not Found

0

Oh my bad

This discussion is preserved as it was. New answers, comments, and votes are closed.