Trying to add new user, by posting user details in to REST API: POST /rest/api/2/group
This error is coming using Jira API in rest assured
Request
{
"id": "https://docs.atlassian.com/jira/REST/schema/add-group#",
"title": "Manali Group",
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"additionalProperties": false
}
Response
<status>
<status-code>401</status-code>
<message>This resource requires WebSudo.</message>
</status>
You need to manage cookies in order to do this via REST API. Remember, in the webui, you need to enter your password before entering the admin area, right? That's what "websudo" is. You can successfully pass websudo and capture the cookie, then reference the cookie when making your change. It's easier to use the Jira CLI, though.
I am already passing the session id value what else i need to pass here:
req=given().spec(Utils.requestSpecification())
.body(data.CreateGroup()).filter(session);
For all other request like create project, create issue this is the way it is working. Could you please help for this also?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.