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": "7d5b0567-e6c0-41b0-842f-8855147c324b",
"Name": "sample string 2",
"StartDate": "2026-03-08T00:45:28.751422+00:00",
"EndDate": "2026-03-08T00:45:28.751422+00:00",
"TargetUserGroupId": "72fdb787-2e1c-4425-8812-ae759ed6e2bb",
"SeatUserGroupIds": [
"bb750892-d829-4bf4-a3d3-57ad9dc556ec",
"81f7d520-26d9-463e-a731-953e92930e38"
],
"OwnerId": "2aaafe73-92bd-4e50-9fe2-50028de58983",
"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": "66ea0805-3c65-4e11-aa78-02c8d3374adb",
"AllowableUserRoles": [
"409c375a-66ae-498e-874e-108a330a2713",
"201aa940-450b-4203-bf83-de48feb78506"
],
"PrivilegedUserRoles": [
"087c7807-ae0a-4294-bae6-2e0d6fed0c76",
"ca924f6f-16fd-41c8-87b1-d984d33b473b"
]
}
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>409c375a-66ae-498e-874e-108a330a2713</d2p1:guid>
<d2p1:guid>201aa940-450b-4203-bf83-de48feb78506</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-08T00:45:28.751422+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>66ea0805-3c65-4e11-aa78-02c8d3374adb</LicenseCategoryId>
<LicenseType>5</LicenseType>
<Name>sample string 2</Name>
<OwnerId>2aaafe73-92bd-4e50-9fe2-50028de58983</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>087c7807-ae0a-4294-bae6-2e0d6fed0c76</d2p1:guid>
<d2p1:guid>ca924f6f-16fd-41c8-87b1-d984d33b473b</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>bb750892-d829-4bf4-a3d3-57ad9dc556ec</d2p1:guid>
<d2p1:guid>81f7d520-26d9-463e-a731-953e92930e38</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-03-08T00:45:28.751422+00:00</StartDate>
<TargetUserGroupId>72fdb787-2e1c-4425-8812-ae759ed6e2bb</TargetUserGroupId>
<Id>7d5b0567-e6c0-41b0-842f-8855147c324b</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>