v1

latestOpenAPI 3.0.3Lucid2026-07-14155181312.3 KB
Licenses

Grant User License

Grants a license to a user from a specified subscription. If the user already has a license on the given subscription, the existing license is returned.

post/v1/users/{id}/licenses

Path parameters

idinteger required

User ID

Request body

subscriptionIdstring uuid required

The subscription ID to grant the license from

Example request

{
  "subscriptionId": "8e8cf611-d74c-4a2f-8b61-754b22328fbb"
}

Response

Created. Returns the granted license, or the existing license if the user already has one on this subscription.

userIdinteger required

User ID

subscriptionIdstring uuid required

Subscription ID

createdstring date-time required

Date and time when the license was granted

Example response

{
  "userId": 123,
  "subscriptionId": "8e8cf611-d74c-4a2f-8b61-754b22328fbb",
  "created": "2024-08-08T22:21:48.612Z"
}