Skip to main content

Basic curl Query API with quoted string

  • November 12, 2020
  • 4 replies
  • 1563 views

Hi Im attempting a basic command to test and get used to the API using https://reqbin.com/curl, I am posting the following curl and getting a 400 (Bad Request) error the issue appears to be with the enclosed strings “Postcode”, “N221RW” and appears to be with the double quotes I have tried escaping with " and various other symbols but unable to get it to work, can someone assist me? Thanks

curl -X POST -H “Content-Type:application/json” -H “Authorization:xxxxxxxxxxx” -d ‘{“query”:“{items_by_column_values (board_id: 114768112, column_id: “Postcode”, column_value: “N221RW”) {id}}”}’ “https://api.monday.com/v2/

This topic has been closed for replies.

4 replies

dsilva
Forum|alt.badge.img
  • Participating Frequently
  • November 12, 2020

Hey @issmith - welcome to the community!

Could you confirm that the columnID above is valid? Usually in the interface you’ll see something like this saying “text” or whatever the column type may be:

image

-Daniel


  • Author
  • New Participant
  • November 13, 2020

Thanks, yes it was different however I changed it to text9 and it still didnt work although I got the same string working in power automate, so maybe some limitation with reqbin


dsilva
Forum|alt.badge.img
  • Participating Frequently
  • November 13, 2020

Understood @issmith - let me know if we can help with anything else.

-Daniel


  • March 5, 2021

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.