Forums

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

API error

RuntimeError: POST https://xxxxxx.atlassian.net/rest/api/3/search/jql failed [400]: {'errorMessages': ['Invalid request payload. Refer
to the REST API documentation and try again.']}
Stuck on this error. Any thoughts or inputs on this?

3 answers

2 accepted

4 votes
Answer accepted
Prachi Bolar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 14, 2026

Hello,

Welcome to community :) 

We have edited the url from the post as it would be visible to all 

As per the error Jira rejected the JSON body shape itself, not the JQL.
So it’s almost certainly one of:

  • Wrong JSON structure for the new /search/jql endpoint

  • Invalid / non‑JSON body 

  • Missing required field in the body

Could you please let us know what are you trying to post using api?

Thank you

Prachi

I am trying to get the custom field values and its context for a project, it was throwing an error using get, so used POST for this. 

1 vote
Answer accepted
Nikola Perisic
Community Champion
January 14, 2026

Welcome @Addakula Sri Sai Venkata Lalitha Yasonadh Yashwanth 

Error message appears to be legit referring that your payload is invalid. What is the body of your request? What were you trying to do with the request?

    payload = {
            "jql": f"project={project_key}",
            "startAt": start_at,
            "maxResults": MAX_RESULTS,
        }

Payload shape required by the API:
    { "queries": [ { "jql": "...", "startAt": 0, "maxResults": 50, "fields": ["..."] } ] }

 

    Response shape:
    { "responses": [ { "issues": [...], "total": 123, "startAt": 0, "maxResults": 50 } ] }

I am trying to get the custom field values and its context for a project, it was throwing an error using get, so used POST for this. I have used these.
Nikola Perisic
Community Champion
January 14, 2026
Like Staffan Redelius likes this
0 votes
Prachi Bolar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 14, 2026

Adding to above please also check our change log : https://developer.atlassian.com/changelog/#CHANGE-2046

It has new end points that can be used for API

Suggest an answer

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

Atlassian Community Events