Forums

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

Invalid request payload. Refer to the REST API documentation and try again.

Phan Hiếu
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!
May 31, 2023

When i create a project which php jira rest client, i found this error 

This code i found this error 

"

if (!function_exists('createProject')){
function createProject(){
$project = new Project();
$project->setName("New Project")
->setKey("NP")
->setDescription("This is a new project");
$requestData = array(
'issueTypes' => array('Bug','Task')
);

try {
$projectService = new ProjectService();
$result = $projectService->createProject($project,$requestData);
} catch (JiraException $e) {
print("Error Occured! " . $e->getMessage()); }
}
}

"

This code in codeIgniter 4

1 answer

0 votes
Nic Brough -Adaptavist-
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.
June 25, 2023

Um, you have not given us the error here?

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