Forums

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

POST /rest/api/3/search/jql returns 400 "Invalid request payload"

Jagadhabi_ Santosh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 15, 2025

Jira Cloud (lightspeeddms.atlassian.net). Posting JSON to POST /rest/api/3/search/jql with body {"jql":"key = \"EVO-12455\" AND project IN (\"EVO\",\"CON\",\"TLS\",\"MOB\",\"LOY\")","startAt":0,"maxResults":50,"fields":["key"]} returns HTTP 400 with {"errorMessages":["Invalid request payload. Refer to the REST API documentation and try again."]}.
Note: the equivalent GET to /rest/api/3/search/jql?jql=... returns results. Please confirm the correct POST payload/schema and advise why POST is rejected on this instance.

for GET request: Im getting empty results

1 answer

0 votes
Matteo Vecchiato
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2025

Hi @Jagadhabi_ Santosh ,

Welcome to Atlassian community.

Probably is the "max result" parameter that ha been replaced by nextPageToken.


You can refer to rest API doc: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-search/#api-rest-api-2-search-jql-post 

Regards 

Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2025

Hello @Matteo Vecchiato 

Probably is the "max result" parameter that has been replaced by nextPageToken.

The maxResults parameter has NOT been replaced by the nextPageToken, as the two serve very different purposes.

If you refer to the API documentation you have provided a link to, you will see that maxResults parameter is still very much alive and useable.

Suggest an answer

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

Atlassian Community Events