Skip to main content

Set users and groups to roles in the current project

PUT 

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

Sets all groups, users and their roles for the given project, overriding any existing configuration.

Request

Responses

This response has no body.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/access' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"roles": [
{
"id": 1,
"groups": [
1,
2,
3
],
"users": [
1,
2,
3
]
}
]
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
Body required
{
  "roles": [
    {
      "id": 1,
      "groups": [
        1,
        2,
        3
      ],
      "users": [
        1,
        2,
        3
      ]
    }
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!