Assign licenses
Assigns licenses to the specified users.
Request
POST
https://api.datalens.tech/rpc/assignLicenses
Headers
|
Name |
Description |
|
x-dl-api-version |
Type: string API version header. Const: Example: |
Body
application/json
{
"userIds": [
"example"
]
}
|
Name |
Description |
|
userIds |
Type: string[] IDs of users to assign licenses to. Min items: Max items: Example
|
Responses
200 OK
Response
Body
application/json
[
{
"licenseId": "example",
"meta": {},
"tenantId": "example",
"userId": "example",
"licenseType": "creator",
"isActive": true,
"expiresAt": "example",
"createdBy": "example",
"createdAt": "example",
"updatedBy": "example",
"updatedAt": "example"
}
]
Type: License[]
License
|
Name |
Description |
||
|
createdAt |
Type: string Date and time when the license was created. Example: |
||
|
createdBy |
Type: string ID of the user who created the license. Example: |
||
|
expiresAt |
Type: string Date and time when the license expires. Example: |
||
|
isActive |
Type: boolean Whether the license is active. |
||
|
licenseId |
Type: string Unique identifier of the license. Example: |
||
|
licenseType |
Type: string Type of the license. Const: Example: |
||
|
meta |
Type: object
Additional license metadata. Example
|
||
|
tenantId |
Type: string ID of the tenant that owns the license. Example: |
||
|
updatedAt |
Type: string Date and time when the license was last updated. Example: |
||
|
updatedBy |
Type: string ID of the user who last updated the license. Example: |
||
|
userId |
Type: string ID of the user assigned the license. Example: |
Example
{
"licenseId": "example",
"meta": {},
"tenantId": "example",
"userId": "example",
"licenseType": "creator",
"isActive": true,
"expiresAt": "example",
"createdBy": "example",
"createdAt": "example",
"updatedBy": "example",
"updatedAt": "example"
}