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": "2b2e4e1f-a9ab-4262-b0be-d6c8d98082be",
"Name": "sample string 2",
"StartDate": "2026-01-02T20:40:14.5523764+00:00",
"EndDate": "2026-01-02T20:40:14.5523764+00:00",
"TargetUserGroupId": "c0f83195-d1c3-4d74-bb59-302636d2a20c",
"SeatUserGroupIds": [
"587679f4-de2f-4006-96c1-f0e20bf65338",
"26c03147-59ef-4605-9048-b8ba61c14faf"
],
"OwnerId": "daa71052-96d9-4716-bfba-22a7633dafb7",
"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": "0c519fa2-d3c5-446c-9168-34e2fc514440",
"AllowableUserRoles": [
"ebd09793-909c-47cb-b6ef-6229d75dc749",
"96badbb5-e674-4585-9533-7456617b1917"
],
"PrivilegedUserRoles": [
"2de19ebb-5297-4e75-a00d-8886b3f08f6a",
"fe41a036-8aa4-4074-9923-bf80336b55eb"
]
}
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>ebd09793-909c-47cb-b6ef-6229d75dc749</d2p1:guid>
<d2p1:guid>96badbb5-e674-4585-9533-7456617b1917</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-01-02T20:40:14.5523764+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>0c519fa2-d3c5-446c-9168-34e2fc514440</LicenseCategoryId>
<LicenseType>5</LicenseType>
<Name>sample string 2</Name>
<OwnerId>daa71052-96d9-4716-bfba-22a7633dafb7</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>2de19ebb-5297-4e75-a00d-8886b3f08f6a</d2p1:guid>
<d2p1:guid>fe41a036-8aa4-4074-9923-bf80336b55eb</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>587679f4-de2f-4006-96c1-f0e20bf65338</d2p1:guid>
<d2p1:guid>26c03147-59ef-4605-9048-b8ba61c14faf</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-01-02T20:40:14.5523764+00:00</StartDate>
<TargetUserGroupId>c0f83195-d1c3-4d74-bb59-302636d2a20c</TargetUserGroupId>
<Id>2b2e4e1f-a9ab-4262-b0be-d6c8d98082be</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>