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

Deletes a role

Deletes a role. May return 403 in the future

DELETE/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

Query parameters
swapinteger<int64>

If given, removes a role even if it is used in scheme by replacing the role with the given one

Responses
204

Returned if the delete was successful.

400

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

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.

409

Returned if the project role is used in schemes and roleToSwap query parameter is not given.

Try it
Server
Authorization
Parameters
Request
curl -X DELETE 'http://jira.example.com/rest/api/2/role/0' \
  -H 'Authorization: Basic YOUR_CREDENTIALS'
Response
Returned if the delete was successful.

Was this page helpful?