Description: Updates an existing project role.
Since: 7.17.4
Security: Requires a user assigned with the 'Administer the Platform' role or Project Admin permissions if admin_privileges.manage_resources
is enabled.
Usage: PUT /v1/projects/{project_key}/roles/{role}
Produces: application/json
Parameters:
Name | Description |
---|---|
(path) | The project key |
(path) | The role name |
(body) | Role to be edited |
Header parameter: Authorization: Bearer
Sample Request:
{ "name": "senior developer", "actions": [ "READ_REPOSITORY" ], "type": "PREDEFINED", "environments": [ "DEV" ] }
Sample Response:
{ "name": "senior developer", "actions": [ "READ_REPOSITORY" ], "type": "CUSTOM", "environments": [ "DEV" ] }