---
title: "Changes to Add roles to admin user or API Key"
method: PUT
path: "/api/license-manager/users/{userId}/roles"
---

# Changes to Add roles to admin user or API Key

`PUT /api/license-manager/users/{userId}/roles`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 2 of 50 revisions.

- **2022-01-28** `ca8bd421f133` — 2 warning
- **2021-11-09** `7a2ee1e98a24` — 1 breaking, 3 info

## Changes

- **2022-01-28** `ca8bd421f133` — 2 warning
  - deleted the `path` request parameter `accountName`
  - deleted the `path` request parameter `environment`
- **2021-11-09** `7a2ee1e98a24` — 1 breaking, 3 info
  - removed the success response with the status `200`
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - added the success response with the status `204`

---

[Operation](https://skmtc.dev/vtex/apis/license-manager-api/docs/api/license-manager/users/:userId/roles/put.md) · [API](https://skmtc.dev/vtex/apis/license-manager-api.md) · [Page](https://skmtc.dev/vtex/apis/license-manager-api/changes/api/license-manager/users/:userId/roles/put)
