I’m using Postman to build out all of our API calls before coding them. I need to change multiple column values on an existing item with a single API call. However, I’m receiving a Parse error when sending the request using JSON
Here’s what the request body looks like, with board_id and item_id redacted for security:
Welcome to the community. I believe the \ character is a special character for Postman and needs to be escaped by a . I am not 100% sure but you could try:
Thank you for the welcome, and for the suggestion!
Unfortunately, the double slashes don’t make much of a difference. Postman underline the resulting string as malformed and the API simply returns {} with a 500.
No luck there, either. The entire mutation string is encased in quotation marks, hence the need to escape additional quotes. I tried wrapping my column_values value in quotes, like this:
{"query": "mutation { change_multiple_column_values ( board_id: 1232810882, item_id:1267356806, column_values: \"{\\\"text\\\":\\\"this is some text\\\",\\\"text_1\\\":\\\"this is some other text\\\"}\") { id column_values (ids: [\"text\",\"text_1\"]) { text }}}"}
Please note that you should send your Postman mutations as a single string, if you are using JSON! I think that might have been part of the issue you were having.