Forums

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

Distinguishing between Error responses for Create User API

Jun
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 16, 2021

I am using the following API to create a JIRA user and would like to differentiate between the causes for a HTTP 400 error returned by the API.

According to the documentation, a 400 error is returned by the API when

  • The user exists but does not have access to JIRA
  • No. of licensed users exceeded
  • Request is invalid

The documentation also states that a "schema has not been defined for this response code". Does that mean that there is no response body from the API, from which I can differentiate the different causes for the error?

 


https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-user-post


 

1 answer

0 votes
Pramodh M
Community Champion
September 16, 2021

Hi @Jun 

Along with the code you will usually have message response as well.

Thanks,
Pramodh

Suggest an answer

Log in or Sign up to answer