Skip to main content

Sets roles for user

PUT <your-unleash-url>/api/admin/projects/:projectId/users/:userId/roles

Authorization

name: Authorizationtype: apiKeyin: header

Sets the roles a user has in the project.

Request

Path Parameters

  • projectId string required
  • userId string required
Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: header

Request

Base URL
<your-unleash-url>
apiKey
projectId — path required
userId — path required
curl / cURL
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/users/:userId/roles' \
-H 'Authorization: <API_KEY_VALUE>'