Skip to main content

Configure project role access

POST 

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

deprecated

This endpoint has been deprecated and may be replaced or 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 stringrequired
    roleId stringrequired

Bodyrequired

projectAddRoleAccessSchema

    groups object[]required

    A list of groups IDs

  • Array [
  • idintegerrequired

    A group ID

    Example: 5
  • ]
  • users object[]required

    A list of user IDs

  • Array [
  • idintegerrequired

    A user ID

    Example: 5
  • ]

Responses

This response has no body.

Authorization: Authorization

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

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