curl --request POST \
--url 'http://xxx:8080/rest/api/2/user' \
--user 'xxx@qq.com:my-api-token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"password": "123456",
"emailAddress": "test@test.com",
"displayName": "sunny",
"name": "sunny"
}'
Hi,
Is your JIRA instance a cloud hosted one? If so, can you confirm if the URL in your POST call is correct?
Error code 401 says You are unauthenticated. Kindly verify the credentials used for user creation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, I have applied for and used api_token, how to verify it? Is my usage method wrong? Can you give me an example? For example, the email is xxx@139.com, api_token is abc_xxxxxxxxxxx, and url is http://xxx:8080/rest/api/2/user
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.