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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.