Filter API calls for tickets, contacts, and so on (e.g. filter tickets) require string values to be enclosed in single quotes:
How are string values that contain single quotes represented?
Should the internal single quote be double URL-encoded? Escaped with a slash? Or are strings containing single quotes simply invalid for use in filters?
Welcome to the community!
AFAIK, you can do the escaped with a backslash.
Backslashes do not work to allow string values that contain single quotes. A request to
api/v2/search/contacts?query="email='test+\'@gmail.com'" results in a validation failure. The same API request without the
\' works as expected.
Let me check with the product team and get back at the earliest
I had checked with the product team and it wont work on Filter ticket API and it’s been a known bug for quite sometime, As of now there is no workaround is what the team said.
Hope it helps
This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.