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": "863f9da0-a260-418c-a4a5-065c8f0a883a",
"Name": "sample string 2",
"StartDate": "2026-03-02T04:01:16.7562642+00:00",
"EndDate": "2026-03-02T04:01:16.7562642+00:00",
"TargetUserGroupId": "b1a085e3-6c56-4f71-badb-06223ce877f8",
"SeatUserGroupIds": [
"6f335f11-7f7c-49a6-a6be-2535c8bd343d",
"4cd9490c-9691-4b3f-85c3-f75d5aea5587"
],
"OwnerId": "c7664364-cdc8-4c54-9242-c19147eba870",
"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": "ef056a3f-98a8-4c6d-b0fd-539bd4d982e5",
"AllowableUserRoles": [
"33de414b-a09e-4500-8770-b11fe20d5d43",
"e5fc3656-c637-4c55-af92-44e0a317ee61"
],
"PrivilegedUserRoles": [
"b0a8cc4c-ad1c-47f1-bf86-3e4743c1ca94",
"4b5f530e-148d-4955-a657-3a150b9bca2f"
]
}
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>33de414b-a09e-4500-8770-b11fe20d5d43</d2p1:guid>
<d2p1:guid>e5fc3656-c637-4c55-af92-44e0a317ee61</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-03-02T04:01:16.7562642+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>ef056a3f-98a8-4c6d-b0fd-539bd4d982e5</LicenseCategoryId>
<LicenseType>5</LicenseType>
<Name>sample string 2</Name>
<OwnerId>c7664364-cdc8-4c54-9242-c19147eba870</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>b0a8cc4c-ad1c-47f1-bf86-3e4743c1ca94</d2p1:guid>
<d2p1:guid>4b5f530e-148d-4955-a657-3a150b9bca2f</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>6f335f11-7f7c-49a6-a6be-2535c8bd343d</d2p1:guid>
<d2p1:guid>4cd9490c-9691-4b3f-85c3-f75d5aea5587</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-03-02T04:01:16.7562642+00:00</StartDate>
<TargetUserGroupId>b1a085e3-6c56-4f71-badb-06223ce877f8</TargetUserGroupId>
<Id>863f9da0-a260-418c-a4a5-065c8f0a883a</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>