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

Fully updates a role's name and description

Fully updates a roles. Both name and description must be given.

PUT/api/2/role/{id}
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
descriptionstring
namestring
Responses
200

Returns updated role.

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

Returned when name or description is not given or the name field is invalid (empty or starts or ends with whitespace).

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 PUT 'http://jira.example.com/rest/api/2/role/0' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "description": "role description",
  "name": "MyRole"
}'
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?