It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Create cards with long description without exceeding URL length

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 

1 answer

1 accepted

1 vote
Answer accepted
Manu Atlassian Team Nov 27, 2019

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."
}'

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,616 views 15 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you