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-03-02T04:02:01.5797227+00:00",
"EndDate": "2026-03-02T04:02:01.5797227+00:00",
"TargetUserGroupId": "ea677d34-15bf-4074-97b1-5b9661e2b4d0",
"SeatUserGroupIds": [
"6caf4af1-626c-409c-831b-9bc40b09967b",
"11bd6351-8af7-4b06-83a0-0c5a655cbb65"
],
"OwnerId": "6941f0ab-3291-4064-a114-87fc52f3836f",
"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": "3646b75e-ec19-42ae-a67d-35a25aa59bca",
"AllowableUserRoles": [
"45cbe653-dd87-496a-9050-38964c3aa0ee",
"057e8d10-719f-4d6f-934f-9ea6b0616576"
],
"PrivilegedUserRoles": [
"a26d44c8-2cef-48bf-9e87-a61b07d1afa5",
"80b8ef7a-c240-4f72-bb1f-53f908b4a103"
]
}
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>45cbe653-dd87-496a-9050-38964c3aa0ee</d2p1:guid>
<d2p1:guid>057e8d10-719f-4d6f-934f-9ea6b0616576</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-03-02T04:02:01.5797227+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>3646b75e-ec19-42ae-a67d-35a25aa59bca</LicenseCategoryId>
<LicenseType>4</LicenseType>
<Name>sample string 1</Name>
<OwnerId>6941f0ab-3291-4064-a114-87fc52f3836f</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>a26d44c8-2cef-48bf-9e87-a61b07d1afa5</d2p1:guid>
<d2p1:guid>80b8ef7a-c240-4f72-bb1f-53f908b4a103</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>6caf4af1-626c-409c-831b-9bc40b09967b</d2p1:guid>
<d2p1:guid>11bd6351-8af7-4b06-83a0-0c5a655cbb65</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-03-02T04:02:01.5797227+00:00</StartDate>
<TargetUserGroupId>ea677d34-15bf-4074-97b1-5b9661e2b4d0</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>