Skip to main content

Configure project role access

POST <your-unleash-url>/api/admin/projects/:projectId/role/:roleId/access

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
deprecated

This endpoint has been deprecated and may be removed in future versions of the API.

Configure project access for groups and single users. The provided users and groups will be given the role specified in the URL parameters. This endpoint is deprecated. Use /:projectId/access instead.

Request

Path Parameters

  • projectId string required
  • roleId string required

Body

required

projectAddRoleAccessSchema

  • groups object[]required

    A list of groups IDs

  • Array [
  • id integer required

    A group ID

  • ]
  • users object[]required

    A list of user IDs

  • Array [
  • id integer required

    A user ID

  • ]
Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Request

Base URL
<your-unleash-url>
Security Scheme
apiKey
projectId — path required
roleId — path required
Body required
{
"groups": [
{
"id": 5
}
],
"users": [
{
"id": 5
}
]
}
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/role/:roleId/access' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"groups": [
{
"id": 5
}
],
"users": [
{
"id": 5
}
]
}'