Skip to main content

Configure project access

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

Authorization

name: Authorizationtype: apiKeyin: header

Configure project access for groups and single users. The provided users and groups will be given the roles specified in the payload.

Request

Path Parameters

  • projectId string required

Body

required

projectAddAccessSchema

  • roles integer[] required

    A list of role IDs

  • groups integer[] required

    A list of group IDs

  • users integer[] required

    A list of user IDs

Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: header

Request

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