Forums

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

Getting Error Response as[INVALID_INPUT] on/rest/api/3/issue/[ISSUE_ID] (update call)

figece5119 twit-mail
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!
January 17, 2022

Hi,
In real time, we are getting the below  error response for few Issue Update calls and it is logged in our application.

API Call : https://xxx.atlassian.net/rest/api/3/issue/[Issue_id]

Method : PUT

Response: 

 400:Error in response\nstatus : 400\nMessage : Bad Request\nDetails : {"value":{"errorMessages":["INVALID_INPUT"],"errors":{}}}

Here we don't have request data as we can not log it as per security. 


We tried with different request format to replicate, but could not replicate. 

Could you help us in understanding the root cause of this error response. Also when and what scenarios INVALID_INPUT  error response will come

 

1 answer

2 votes
Pramodh M
Community Champion
January 17, 2022

Hi @figece5119 twit-mail 

Status 400 may represent any one of the following

  • the request body is missing.
  • the user does not have the necessary permission to edit one or more fields.
  • the request includes one or more fields that are not found or are not associated with the issue's edit screen.
  • the request includes an invalid transition.

Ref here

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-put

Please have a look at this documentation for more troubleshooting 

https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-edit-issues-6291632

Thanks,
Pramodh

figece5119 twit-mail
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!
January 19, 2022

Thanks Pramodh.

Can you share the information on below second point, what kind of permission needed and can share one scenario to replicate the issue in test environment

  • the user does not have the necessary permission to edit one or more fields.

When we revoke the permission to jira software. Getting the  response as below:
{
"errorMessages": [
"Issue does not exist or you do not have permission to see it."
],
"errors": {}
}

 

Thanks for your time.

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