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": "93941c9b-b5c3-4796-a1b6-1177251e1057",
"Name": "sample string 2",
"StartDate": "2026-06-27T09:23:47.3328549+00:00",
"EndDate": "2026-06-27T09:23:47.3328549+00:00",
"TargetUserGroupId": "314680c0-9bc6-48c2-9916-e870dd5404d1",
"SeatUserGroupIds": [
"03ae160d-a933-403e-862a-0ff3d6ddf84c",
"6839ce10-8854-48ff-82c5-c81ad33f0870"
],
"OwnerId": "e7980748-4ff3-4f76-9d98-509737eed1a7",
"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": "e2c35369-8391-4983-bfad-55aed6f54905",
"AllowableUserRoles": [
"4bc22390-5254-4a76-a97c-a511fe0b32c1",
"7c37c275-4964-4e45-9818-c7ce090a0992"
],
"PrivilegedUserRoles": [
"091c5693-7979-4a7e-9cf3-ef7acfc2f9ba",
"c10f7bc0-15ba-45d9-a850-0ce3c7323294"
]
}
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>4bc22390-5254-4a76-a97c-a511fe0b32c1</d2p1:guid>
<d2p1:guid>7c37c275-4964-4e45-9818-c7ce090a0992</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-27T09:23:47.3328549+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>e2c35369-8391-4983-bfad-55aed6f54905</LicenseCategoryId>
<LicenseType>5</LicenseType>
<Name>sample string 2</Name>
<OwnerId>e7980748-4ff3-4f76-9d98-509737eed1a7</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>091c5693-7979-4a7e-9cf3-ef7acfc2f9ba</d2p1:guid>
<d2p1:guid>c10f7bc0-15ba-45d9-a850-0ce3c7323294</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>03ae160d-a933-403e-862a-0ff3d6ddf84c</d2p1:guid>
<d2p1:guid>6839ce10-8854-48ff-82c5-c81ad33f0870</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-06-27T09:23:47.3328549+00:00</StartDate>
<TargetUserGroupId>314680c0-9bc6-48c2-9916-e870dd5404d1</TargetUserGroupId>
<Id>93941c9b-b5c3-4796-a1b6-1177251e1057</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>