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": "b3cc999f-5d07-45b9-9692-4a308ed4b040",
"Name": "sample string 2",
"StartDate": "2026-09-28T02:01:35.1722014+00:00",
"EndDate": "2026-09-28T02:01:35.1722014+00:00",
"TargetUserGroupId": "e3abb656-d2c8-4363-8244-3bd2d4bc7022",
"SeatUserGroupIds": [
"6b9e1964-a5ea-4607-b994-fa40d37312d2",
"8d73c367-a0be-4db1-835f-556ff695e01c"
],
"OwnerId": "aa75fd9d-4921-4da7-94c8-428323c4fd2d",
"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": "a9f3931e-2ec5-47d3-917a-bda4f40805f3",
"AllowableUserRoles": [
"aa00332d-2b68-4d80-9e5c-729a7c4ed444",
"ddd8e660-37de-4484-b7b7-0a94339f90da"
],
"PrivilegedUserRoles": [
"0a0c766f-4384-410e-ae24-53e89b2e9dd3",
"2129f826-2972-4383-9132-ff316cf2adf2"
]
}
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>aa00332d-2b68-4d80-9e5c-729a7c4ed444</d2p1:guid>
<d2p1:guid>ddd8e660-37de-4484-b7b7-0a94339f90da</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-09-28T02:01:35.1722014+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>a9f3931e-2ec5-47d3-917a-bda4f40805f3</LicenseCategoryId>
<LicenseType>5</LicenseType>
<Name>sample string 2</Name>
<OwnerId>aa75fd9d-4921-4da7-94c8-428323c4fd2d</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>0a0c766f-4384-410e-ae24-53e89b2e9dd3</d2p1:guid>
<d2p1:guid>2129f826-2972-4383-9132-ff316cf2adf2</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>6b9e1964-a5ea-4607-b994-fa40d37312d2</d2p1:guid>
<d2p1:guid>8d73c367-a0be-4db1-835f-556ff695e01c</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-09-28T02:01:35.1722014+00:00</StartDate>
<TargetUserGroupId>e3abb656-d2c8-4363-8244-3bd2d4bc7022</TargetUserGroupId>
<Id>b3cc999f-5d07-45b9-9692-4a308ed4b040</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>