Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to call REST API "Post object aql" to filter for a phone number

Kavitha
Contributor
November 19, 2024

 

Hi All,

I am trying to search for an object based on the "Phone Number"  and this is my

POST request -Body:

{   "qlQuery": "'Phone Number' LIKE  '111'" }

On passing this, I have got this error:

"AQL \"'Phone Number' LIKE  '111'\" has invalid syntax at position 7 with error message \"no viable alternative at input ' N'\""

Not sure how to pass the object name with space in it. I have tried with single and double quote combinations. The existings POSTs in the community answers for the "GET" call with quesry string but the problem is now with the POST call and needs to pass the query as the BODY of the request.

Any help will be highly appreciated

Thanks,

Kavitha

1 answer

1 accepted

0 votes
Answer accepted
Tuncay Senturk
Community Champion
November 20, 2024

Have you tried

{ "qlQuery": "\"Phone Number\" LIKE '111'" }
Kavitha
Contributor
November 26, 2024

Hi @Tuncay Senturk , 

Thanks for your reply, I am able to get the filtered data.

Kavitha

Tuncay Senturk
Community Champion
November 26, 2024

You're welcome! I am glad it helped

Like Kavitha likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events