POST api/licenses/add
Create new License
Request Information
URI Parameters
None.
Body Parameters
LicenseRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| 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:
{
"Name": "sample string 1",
"StartDate": "2026-09-28T02:01:43.156595+00:00",
"EndDate": "2026-09-28T02:01:43.156595+00:00",
"TargetUserGroupId": "332ff98a-94ee-4fca-8a5a-161de11f57b9",
"SeatUserGroupIds": [
"4a9c8567-9923-49cc-acde-541e84f6feb0",
"88b049a8-f938-40f5-8bc1-6817ee15bd3a"
],
"OwnerId": "d06425e9-8633-40ec-b682-22dd5d03b921",
"LicenseType": 4,
"AccessType": 5,
"AvailableSeats": 6,
"Isbns": [
"sample string 1",
"sample string 2"
],
"ContactPersonName": "sample string 7",
"ContactPhone": "sample string 8",
"ContactEmail": "sample string 9",
"CommentText": "sample string 10",
"Buffer": 1,
"Grade": "sample string 11",
"LicenseCategoryId": "254916e6-ba47-40eb-a7ea-1690e1f95f07",
"AllowableUserRoles": [
"201bf89f-a17d-4d94-8b69-e5c80db50e25",
"e579e7e6-bdcf-4ae1-a054-88b80b658b98"
],
"PrivilegedUserRoles": [
"e9be5547-1e6f-47e5-8ccc-8afe8be14ea6",
"d11ef708-d340-4daf-8086-9a9d743c2085"
]
}
application/xml, text/xml
Sample:
<LicenseRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Requests">
<AccessType>5</AccessType>
<AllowableUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>201bf89f-a17d-4d94-8b69-e5c80db50e25</d2p1:guid>
<d2p1:guid>e579e7e6-bdcf-4ae1-a054-88b80b658b98</d2p1:guid>
</AllowableUserRoles>
<AvailableSeats>6</AvailableSeats>
<Buffer>1</Buffer>
<CommentText>sample string 10</CommentText>
<ContactEmail>sample string 9</ContactEmail>
<ContactPersonName>sample string 7</ContactPersonName>
<ContactPhone>sample string 8</ContactPhone>
<EndDate>2026-09-28T02:01:43.156595+00:00</EndDate>
<Grade>sample string 11</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>254916e6-ba47-40eb-a7ea-1690e1f95f07</LicenseCategoryId>
<LicenseType>4</LicenseType>
<Name>sample string 1</Name>
<OwnerId>d06425e9-8633-40ec-b682-22dd5d03b921</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>e9be5547-1e6f-47e5-8ccc-8afe8be14ea6</d2p1:guid>
<d2p1:guid>d11ef708-d340-4daf-8086-9a9d743c2085</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>4a9c8567-9923-49cc-acde-541e84f6feb0</d2p1:guid>
<d2p1:guid>88b049a8-f938-40f5-8bc1-6817ee15bd3a</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-09-28T02:01:43.156595+00:00</StartDate>
<TargetUserGroupId>332ff98a-94ee-4fca-8a5a-161de11f57b9</TargetUserGroupId>
</LicenseRequest>
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>