Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Adds default actors to a role

Adds default actors to the given role. The request data should contain a list of usernames or a list of groups to add.

POST/api/2/role/{id}/actors
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
idinteger<int64>required

The role id

Request body
application/json
groupstring[]
userstring[]
Responses
200

Returns actor list.

actorsRoleActorBean[]
Show properties
Array of RoleActorBean
namestring
400

Returned if the request json does not have a user or group field or both user and group fields are given.

401

Returned if the requesting user is not logged in.

403

Returned if the requesting user is not an admin or a sysadmin.

404

Returned if the role with the given id does not exist.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/role/0/actors' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "group": [
    "string"
  ],
  "user": [
    "string"
  ]
}'
Response
{
  "actors": [
    {
      "name": "jira-developers"
    }
  ]
}

Was this page helpful?