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": "2025-12-25T15:49:01.503803+00:00",
"EndDate": "2025-12-25T15:49:01.503803+00:00",
"TargetUserGroupId": "d60b8c21-2384-40e5-ac6e-65a994df509d",
"SeatUserGroupIds": [
"1727c25b-c015-4e51-8736-5cd533d3d726",
"fd2e7fe2-7cc8-40fe-b798-07d9a082fb7f"
],
"OwnerId": "e3e5ffb7-9fd3-480a-9efb-3bff6b82964e",
"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": "b05a3e2d-6451-4eb6-9887-b500616f1b18",
"AllowableUserRoles": [
"d79d7053-d38d-469f-a3d9-e3979f5cf139",
"968311e4-099a-4a1a-affe-41423a35058b"
],
"PrivilegedUserRoles": [
"7a520679-38c1-4e81-8842-8cd7ce29d8e3",
"93f108af-1c68-403d-aa60-e004ebe6b589"
]
}
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>d79d7053-d38d-469f-a3d9-e3979f5cf139</d2p1:guid>
<d2p1:guid>968311e4-099a-4a1a-affe-41423a35058b</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>2025-12-25T15:49:01.503803+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>b05a3e2d-6451-4eb6-9887-b500616f1b18</LicenseCategoryId>
<LicenseType>4</LicenseType>
<Name>sample string 1</Name>
<OwnerId>e3e5ffb7-9fd3-480a-9efb-3bff6b82964e</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>7a520679-38c1-4e81-8842-8cd7ce29d8e3</d2p1:guid>
<d2p1:guid>93f108af-1c68-403d-aa60-e004ebe6b589</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>1727c25b-c015-4e51-8736-5cd533d3d726</d2p1:guid>
<d2p1:guid>fd2e7fe2-7cc8-40fe-b798-07d9a082fb7f</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2025-12-25T15:49:01.503803+00:00</StartDate>
<TargetUserGroupId>d60b8c21-2384-40e5-ac6e-65a994df509d</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>