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-26T18:35:19.3293698+00:00",
"EndDate": "2026-06-26T18:35:19.3293698+00:00",
"TargetUserGroupId": "0d60b28f-5a78-46bf-b600-3ca448c1887e",
"SeatUserGroupIds": [
"1ce8f53d-9b5e-4042-850e-13de0ceac148",
"a4caf21c-28a1-4d11-898f-c1dd039a2e37"
],
"OwnerId": "93d9496c-c355-4acc-bb61-fc054337deee",
"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": "fdf49ae1-24c8-4665-8477-b53d15c8239d",
"AllowableUserRoles": [
"9e7188d4-b28f-4ee7-a595-4542c2ee0ee0",
"8c90ce87-ef5a-4d06-bc3f-e39570001bb4"
],
"PrivilegedUserRoles": [
"8438c05d-6e38-409b-a0f7-4f3f65b0e78a",
"6a2a5cf3-90fe-4afe-8123-2d47965ab18c"
]
}
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>9e7188d4-b28f-4ee7-a595-4542c2ee0ee0</d2p1:guid>
<d2p1:guid>8c90ce87-ef5a-4d06-bc3f-e39570001bb4</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-26T18:35:19.3293698+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>fdf49ae1-24c8-4665-8477-b53d15c8239d</LicenseCategoryId>
<LicenseType>4</LicenseType>
<Name>sample string 1</Name>
<OwnerId>93d9496c-c355-4acc-bb61-fc054337deee</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>8438c05d-6e38-409b-a0f7-4f3f65b0e78a</d2p1:guid>
<d2p1:guid>6a2a5cf3-90fe-4afe-8123-2d47965ab18c</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>1ce8f53d-9b5e-4042-850e-13de0ceac148</d2p1:guid>
<d2p1:guid>a4caf21c-28a1-4d11-898f-c1dd039a2e37</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-06-26T18:35:19.3293698+00:00</StartDate>
<TargetUserGroupId>0d60b28f-5a78-46bf-b600-3ca448c1887e</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>