POST api/RootLicense
Create new Root License
Request Information
URI Parameters
None.
Body Parameters
RootLicenseRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| TargetUserGroupId | globally unique identifier |
None. |
|
| SeatUserGroupIds | Collection of globally unique identifier |
None. |
|
| OwnerId | globally unique identifier |
None. |
|
| LicenseType | integer |
None. |
|
| AccessType | integer |
None. |
|
| AvailableSeats | integer |
None. |
|
| Isbns | Collection of string |
None. |
|
| ContactPersonName | string |
None. |
|
| ContactPhone | string |
None. |
|
| ContactEmail | string |
None. |
|
| CommentText | string |
None. |
|
| Buffer | integer |
None. |
|
| Grade | string |
None. |
|
| LicenseCategoryId | globally unique identifier |
None. |
|
| AllowableUserRoles | Collection of globally unique identifier |
None. |
|
| PrivilegedUserRoles | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "e8a217c6-1c57-4df4-a258-df2530c985fd",
"Name": "sample string 2",
"StartDate": "2026-06-25T19:57:19.4598116+00:00",
"EndDate": "2026-06-25T19:57:19.4598116+00:00",
"TargetUserGroupId": "8dda58f5-9cb4-4d97-b515-d81c64ef0f9f",
"SeatUserGroupIds": [
"6e8e128e-d555-491b-814a-d477734f6e83",
"17728d1e-87cd-4710-b6c8-8c37ce9045b7"
],
"OwnerId": "eda71d64-bd9d-4991-8616-67b7a562df8a",
"LicenseType": 5,
"AccessType": 6,
"AvailableSeats": 7,
"Isbns": [
"sample string 1",
"sample string 2"
],
"ContactPersonName": "sample string 8",
"ContactPhone": "sample string 9",
"ContactEmail": "sample string 10",
"CommentText": "sample string 11",
"Buffer": 1,
"Grade": "sample string 12",
"LicenseCategoryId": "ca694e03-81a6-4ece-bb8f-7b6eef35b835",
"AllowableUserRoles": [
"1be02cb4-38cf-4b43-8426-f0563d11fc88",
"fd53fb8e-a609-4543-b8f7-5d094ce9f141"
],
"PrivilegedUserRoles": [
"2a961a60-1ef3-4cd8-84d6-2d69b939ae70",
"4f50899b-46e9-47b6-9db9-f0813c8ab06c"
]
}
application/xml, text/xml
Sample:
<RootLicenseRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Requests">
<AccessType>6</AccessType>
<AllowableUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>1be02cb4-38cf-4b43-8426-f0563d11fc88</d2p1:guid>
<d2p1:guid>fd53fb8e-a609-4543-b8f7-5d094ce9f141</d2p1:guid>
</AllowableUserRoles>
<AvailableSeats>7</AvailableSeats>
<Buffer>1</Buffer>
<CommentText>sample string 11</CommentText>
<ContactEmail>sample string 10</ContactEmail>
<ContactPersonName>sample string 8</ContactPersonName>
<ContactPhone>sample string 9</ContactPhone>
<EndDate>2026-06-25T19:57:19.4598116+00:00</EndDate>
<Grade>sample string 12</Grade>
<Isbns xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Isbns>
<LicenseCategoryId>ca694e03-81a6-4ece-bb8f-7b6eef35b835</LicenseCategoryId>
<LicenseType>5</LicenseType>
<Name>sample string 2</Name>
<OwnerId>eda71d64-bd9d-4991-8616-67b7a562df8a</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>2a961a60-1ef3-4cd8-84d6-2d69b939ae70</d2p1:guid>
<d2p1:guid>4f50899b-46e9-47b6-9db9-f0813c8ab06c</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>6e8e128e-d555-491b-814a-d477734f6e83</d2p1:guid>
<d2p1:guid>17728d1e-87cd-4710-b6c8-8c37ce9045b7</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-06-25T19:57:19.4598116+00:00</StartDate>
<TargetUserGroupId>8dda58f5-9cb4-4d97-b515-d81c64ef0f9f</TargetUserGroupId>
<Id>e8a217c6-1c57-4df4-a258-df2530c985fd</Id>
</RootLicenseRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ValidationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| IsValid | boolean |
None. |
|
| Errors | Collection of ValidationFailure |
None. |
Response Formats
application/json, text/json
Sample:
{
"errors": []
}
application/xml, text/xml
Sample:
<ValidationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FluentValidation.Results"> <errors /> </ValidationResult>