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": "1a894a92-de77-4924-8b00-1792b160e78b",
"Name": "sample string 2",
"StartDate": "2026-10-18T02:16:43.0948524+00:00",
"EndDate": "2026-10-18T02:16:43.0948524+00:00",
"TargetUserGroupId": "332ea891-ed82-4509-8555-c2696d86191d",
"SeatUserGroupIds": [
"2947a682-d7ca-45b0-a3a7-9c6dc18826cb",
"f74e6973-4360-4cb7-938c-9733e896e631"
],
"OwnerId": "c89fc434-02c8-4bf6-9c35-de8deafec456",
"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": "da2a9cf2-6d04-4bf4-ae92-66d79d489886",
"AllowableUserRoles": [
"42878fcc-64d3-4168-8535-a2077385f051",
"86e0573b-7563-47d8-99f4-be65e53dc152"
],
"PrivilegedUserRoles": [
"21339728-c2e9-47f6-afa7-bb8b981737bf",
"e4987a1d-27d1-4198-9b64-8be19729b92e"
]
}
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>42878fcc-64d3-4168-8535-a2077385f051</d2p1:guid>
<d2p1:guid>86e0573b-7563-47d8-99f4-be65e53dc152</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-10-18T02:16:43.0948524+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>da2a9cf2-6d04-4bf4-ae92-66d79d489886</LicenseCategoryId>
<LicenseType>5</LicenseType>
<Name>sample string 2</Name>
<OwnerId>c89fc434-02c8-4bf6-9c35-de8deafec456</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>21339728-c2e9-47f6-afa7-bb8b981737bf</d2p1:guid>
<d2p1:guid>e4987a1d-27d1-4198-9b64-8be19729b92e</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>2947a682-d7ca-45b0-a3a7-9c6dc18826cb</d2p1:guid>
<d2p1:guid>f74e6973-4360-4cb7-938c-9733e896e631</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-10-18T02:16:43.0948524+00:00</StartDate>
<TargetUserGroupId>332ea891-ed82-4509-8555-c2696d86191d</TargetUserGroupId>
<Id>1a894a92-de77-4924-8b00-1792b160e78b</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>