Hi, when I try to add a new card to a list using POST /cards, I get this error:
invalid value for idList
I have confirmed I'm using "idList" (correctly capitalized) for the list. I've put everything in the query parameters. When I run GET /list/{id}, the API returns information on the list, so I know the list ID is valid.
What could be happening?
Thanks for your help!
Hello @Cassidy Rush
The error message is simply stating a fact... you've either not providing a valid ID for the list, or you've formatted the request incorrectly and the idList parameter can't be parsed and processed.
What could be happening?
Many possible things.
You'll need to provide complete information, such as what you're making the request with, how the complete request is structured, (showing exactly how and where you're declaring the idList parameter), what testing you've done with your API test tool to validate the request etc etc etc.
I realized Postman was sending a request body, which contained an unresolved idList variable. Once I set Body to none, the request worked.
I appreciate your encouragement to write a better question. Next time, I will.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is how the request Query should look:
POST: https://api.trello.com/1/cards?key=<key>&token=<token>&name=MyNewCard&pos=bottom&idList=679675740419b90861ebbc09
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was hoping to encourage the OP to learn how to structure a good question, then cross-reference the documentation, realise their mistake and enjoy the satisfaction of discovering the solution... themselves.
I'm a big believer in the adage of "Give a person a fish, and you give them food for a day. Teach them how to fish and you give them food for life"
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.