OR statement in REST queries

Is it possible do a query to the REST-API with multiple statements?

For example:

I want to forward voicemails from my pbx to Zammad to create new Tickets of them. To not have a new user on every voicemail, i want to lookup existing users by their phone or mobile number and assign the ticket to the user, if the phone number already exists.

So i will make a query for phone or mobile field like this:

/api/v1/users/search?query=phone%3A0123456789|mobile%3A0123456789

Above example doesn’t work. Is it possible and if so, how can i do this?

I have found the solution:

using encoded space (%20) it is possible, to write more complex search terms like

/api/v1/users/search?query=phone%3A0123456789%20OR%20mobile%3A0123456789

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