Skip to main content

Update user's project role

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

Authorization

name: Authorizationtype: apiKeyin: header
deprecated

This endpoint has been deprecated and may be removed in future versions of the API.

Replaces the given user's project role with the provided role. The user must already be a memeber of the project. This endpoint is deprecated. Use /:projectId/users/:userId/roles instead.

Request

Path Parameters

  • projectId string required
  • userId string required
  • roleId 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
roleId — path required
curl / cURL
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/users/:userId/roles/:roleId' \
-H 'Authorization: <API_KEY_VALUE>'