Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trello api - editing a description of an existing card?

Asked by
iFlusters 355 Moderation Voter
7 years ago
Edited 7 years ago

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

Log in to vote
0
Answered by
Filipalla 504 Moderation Voter
7 years ago

Sorry the comment thingy does not show up for me

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

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. FrostTaco 90 — 7y
0
Yes there is permission otherwise there would be an authorized error rather than a 404 HTTP not Found iFlusters 355 — 7y
0
Oh my bad Filipalla 504 — 7y
Ad

Answer this question