Ticket query= validation error

 Hey, i am trying to use the query api for tickets to filter them based on their type, but nothing works. Even all of the given examples result in validation errors that frankly do not make much sense to me. Other properties like "email=" work. For example, the following get request:

curl -v -u account:password -X GET "https://tecnatives.freshdesk.com/api/v2/search/tickets?query="tag:null""

Gives me this: {"description":"Validation failed","errors":[{"field":"query","message":"Given query is invalid, expected format \"keyword:value  OPERATOR keyword:'string' OPERATOR keyword:>'yyyy-mm-dd' OPERATOR keyword:<integer\". Space is mandatory between key/value pair and operator. Please check the paranthesis if there are any.","code":"invalid_value"}]}*

Although it should simply work. I also tried all variations. Can somebody please help?

Login or Signup to post a comment