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": "cfe59ab3-9cce-4e28-bd4a-aaf6a543fb21",
"Name": "sample string 2",
"StartDate": "2025-12-25T15:44:18.1600317+00:00",
"EndDate": "2025-12-25T15:44:18.1600317+00:00",
"TargetUserGroupId": "ef8e368a-b6d2-4caf-81b2-c3e06e6b7ac1",
"SeatUserGroupIds": [
"8b46d29b-a8e5-4dd8-9bb0-21f006eda5e2",
"a9d7e0dc-ddbe-4b21-acb6-2f1a9092e7de"
],
"OwnerId": "52cbae09-cd67-4eb6-aff9-2936b80b8aee",
"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": "32a94a00-19df-47b1-8a35-52d6ba32b65d",
"AllowableUserRoles": [
"6c17a66c-b37f-4d3e-8763-e10a39aa29d7",
"d81a284a-6933-4431-aaa2-cb3851286a51"
],
"PrivilegedUserRoles": [
"05d27e0b-ed2b-4a11-99fc-744ecf4a3bd6",
"20dd52e9-0538-4ed2-8985-c040bdeac298"
]
}
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>6c17a66c-b37f-4d3e-8763-e10a39aa29d7</d2p1:guid>
<d2p1:guid>d81a284a-6933-4431-aaa2-cb3851286a51</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>2025-12-25T15:44:18.1600317+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>32a94a00-19df-47b1-8a35-52d6ba32b65d</LicenseCategoryId>
<LicenseType>5</LicenseType>
<Name>sample string 2</Name>
<OwnerId>52cbae09-cd67-4eb6-aff9-2936b80b8aee</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>05d27e0b-ed2b-4a11-99fc-744ecf4a3bd6</d2p1:guid>
<d2p1:guid>20dd52e9-0538-4ed2-8985-c040bdeac298</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>8b46d29b-a8e5-4dd8-9bb0-21f006eda5e2</d2p1:guid>
<d2p1:guid>a9d7e0dc-ddbe-4b21-acb6-2f1a9092e7de</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2025-12-25T15:44:18.1600317+00:00</StartDate>
<TargetUserGroupId>ef8e368a-b6d2-4caf-81b2-c3e06e6b7ac1</TargetUserGroupId>
<Id>cfe59ab3-9cce-4e28-bd4a-aaf6a543fb21</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>