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-06-25T19:59:54.9959981+00:00",
"EndDate": "2026-06-25T19:59:54.9959981+00:00",
"TargetUserGroupId": "9577af77-74cf-4c85-9ea7-422faa5dbe0e",
"SeatUserGroupIds": [
"1f416a61-aa7d-442c-b1c8-af91d5a93b76",
"4f8c9bfa-84cb-4772-822b-6c95dfc086e0"
],
"OwnerId": "c839f9e4-b1f1-485d-9af9-516fd4223483",
"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": "a81d9b7a-ce18-4c2c-b9fb-b3346e6e6645",
"AllowableUserRoles": [
"c699c5b6-f9d9-46d6-bbcb-76e816fb0e5b",
"f1eb5530-897d-4e69-88df-da55073457b1"
],
"PrivilegedUserRoles": [
"6194a350-8b44-4acc-a3c0-1c146765c5dc",
"7a6074ae-96a5-45f5-81a0-69b18cbe52ee"
]
}
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>c699c5b6-f9d9-46d6-bbcb-76e816fb0e5b</d2p1:guid>
<d2p1:guid>f1eb5530-897d-4e69-88df-da55073457b1</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-06-25T19:59:54.9959981+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>a81d9b7a-ce18-4c2c-b9fb-b3346e6e6645</LicenseCategoryId>
<LicenseType>4</LicenseType>
<Name>sample string 1</Name>
<OwnerId>c839f9e4-b1f1-485d-9af9-516fd4223483</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>6194a350-8b44-4acc-a3c0-1c146765c5dc</d2p1:guid>
<d2p1:guid>7a6074ae-96a5-45f5-81a0-69b18cbe52ee</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>1f416a61-aa7d-442c-b1c8-af91d5a93b76</d2p1:guid>
<d2p1:guid>4f8c9bfa-84cb-4772-822b-6c95dfc086e0</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-06-25T19:59:54.9959981+00:00</StartDate>
<TargetUserGroupId>9577af77-74cf-4c85-9ea7-422faa5dbe0e</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>