Forums

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

Create jira user by restapi, but it show "fullname: must input fullname"

志华 西西 July 3, 2023

HI, when I creatre user, I meet a problem for input fullname.

Can you help me to find a way to generate user?

rest/api/2/user

 

{

    "fullname": "Simon cook",

    "name": "Simon cook",

    "password": "1xxx23",

    "emailAddress": "32422134@qq.com",

    "displayname": "cook"

}

 

responds:

"errors": {

               “fullname”: “must input fullname”

}

1 answer

1 accepted

2 votes
Answer accepted
Tuncay Senturk _Snapbytes_
Community Champion
July 3, 2023

Hi @志华 西西 

Welcome to the Community!

Based on the information you provided, it seems that the issue might be with the way you are formatting the request body. The correct format for creating a user in Jira using the REST API is as follows:


{
"name": "Simon cook",
"password": "1xxx23",
"emailAddress": "32422134@qq.com",
"displayName": "cook"
}


Please use "displayName" instead of "fullname".

志华 西西 July 3, 2023

Hi, Tuncay Senturk

Thank you.

It works.

By the way, how can I get the detail information for jira restapi.
For example, I can get restful format form below link.

Jira 9.9.1 (atlassian.com)

But I want to know these key information, can you help me to point a link?

such as displayName, emailAddress and so on for the user api, or issue api.

Tuncay Senturk _Snapbytes_
Community Champion
July 3, 2023

Thanks! I'm glad it works!

Actually, the link you provided is the correct one, you can find all details there.

Suggest an answer

Log in or Sign up to answer