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

Update project role with actors

Updates a project role to include the specified actors (users or groups). Can be also used to clear roles to not include any users or groups. For user actors, their usernames should be used.

PUT/api/2/project/{projectIdOrKey}/role/{id}
Authorization
AuthorizationBasic auth · headerrequired

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

Path parameters
projectIdOrKeystringrequired

The project id or project key

idinteger<int64>required

The project role id

Request body
requiredapplication/json

The actors to set for the role

categorisedActorsobject
idinteger<int64>
Responses
200

Role details and its actors after modification

actorsRoleActorBean[]
Show properties
Array of RoleActorBean
namestring
descriptionstring
idinteger<int64>
namestring
selfstring<uri>
404

Returned if the actor could not be added to the project role

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'http://jira.example.com/rest/api/2/project/string/role/0' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "categorisedActors": {
    "atlassian-user-role-actor": [
      "admin"
    ],
    "atlassian-group-role-actor": [
      "jira-developers"
    ]
  },
  "id": 10360
}'
Response
{
  "actors": [
    {
      "name": "jira-developers"
    }
  ],
  "description": "A project role that represents developers in a project",
  "id": 10360,
  "name": "Developers",
  "self": "http://www.example.com/jira/rest/api/2/project/MKY/role/10360"
}

Was this page helpful?