hi team hoe to solve this error { "errorMessages": [ "Invalid request payload. Refer to

toka shokeir February 15, 2023
{
    "errorMessages": [
        "Invalid request payload. Refer to the REST API documentation and try again."
    ]
}

2 answers

0 votes
Colin Tondreau
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!
July 7, 2024

To those that may find this problem I struggled a while to fix this, turns out my account was missing the permission to be able to edit issues on my project, no matter how I tried to reformat my request it would throw this error and JSON could not be processed, or was badly made. That may have been the case but check with an admin to make sure you have edit permissions enabled. Hope it helps.

0 votes
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 15, 2023

Hi and welcome!

As the message says: The info provided in your request is not valid. Your REST request should be conform the REST API docs.

With little information in your question, it's not really clear what you are trying to do. Please elaborate.

 

Regards,

Jeroen

Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 15, 2023

Hi,

So you try to create a project, but please provide how you are doing the call, the payload you are providing .. because something seems te be wrong with that.

Regards,

Jeroen

toka shokeir February 15, 2023

https://valoro.atlassian.net/rest/api/2/project

Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 15, 2023

Hi,

That is the URL indeed, but what about the body. This is a POST request which requires a structured body with parameters in order to work.

 

Reagards,

Jeroen

toka shokeir February 15, 2023

Capture.PNG

Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 15, 2023

Seems like you got your answer there in the bottom of the screen:

You must specify a valid project lead

Have a look at the documentation you provided:
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-projects/#api-rest-api-2-project-post

There is an example there and by the looks of it the leadAccountId in the example is formatted differently.

 

Regards,

Jeroen

Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 17, 2023

@toka shokeir 

Did you get it to work?

Regards,

Jeroen

Bongolethu
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!
August 24, 2023

this worked for me, replace "%" with ":" in the leadaccountid same as accountid from  [/rest/api/2/project/{1}]

{

"key": "",
"name": "",
"projectTypeKey":"software",
"leadAccountId":"__:__"

}

Suggest an answer

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

Atlassian Community Events