Update an Existing Project Role

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

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

project_key *

string

(path)

The project key

role *

string

(path)

The role name

body *

(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"
  ]
}