You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hey,
So I'm using the API to create a trello card and I want to set a quite large description.
The way the endpoint works is that, despite it being a POST request, all the fields for the card (including non-card related like key and token) are query parameters.
That leads to a very long URL which of course fails.
Any way we can send the description field in the post body to avoid this issue?
Thanks
Hi again Snir,
I'm just posting my reply from our thread together here so others can see how to format their call.
curl --request POST \
--url 'https://api.trello.com/1/cards?idList=idList&keepFromSource=all&key=YOURAPIKEY&token=YOURTOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "Card Name",
"pos": "top",
"idList": "idLIST",
"desc": "When copying an existing card into a new card with idCardSource checklist items are always unchecked and due dates are never marked as complete regardless of their corresponding values in the source card."
}'
Move your description from the url params to the body. e.g.:
```python
def set_card_description(card_id, description):
params = {
'key': TRELLO_KEY,
'token': TRELLO_TOKEN,
}
body = {
'desc': description
}
r = requests.put(f'https://api.trello.com/1/cards/{card_id}', params=params, json=body)
r.raise_for_status()
return r.json()
```
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.