Skip to main content

Configure project access

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

Authorization

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

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: headerdescription: API key needed to access this API

Request

Base URL
<your-unleash-url>
Security Scheme
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
]
}'