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-08T00:49:18.4906527+00:00",
"EndDate": "2026-03-08T00:49:18.4906527+00:00",
"TargetUserGroupId": "30154076-4021-4a87-bedd-e5bdb3a382b1",
"SeatUserGroupIds": [
"0b26dd5d-83e8-42c9-88ea-25b81949a149",
"bad564e3-90f1-499f-b8b9-98ccd01c7648"
],
"OwnerId": "3e296d5e-e86a-430f-a942-1cf759f4d2cc",
"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": "8ce2fc4e-c25a-4041-8619-13daf033313c",
"AllowableUserRoles": [
"a765d068-0e39-40a2-af6a-f39a8ab19b35",
"96f001ed-3bed-4cb5-97b6-7fedad9f1e4c"
],
"PrivilegedUserRoles": [
"596e3968-1ec4-4934-a0f7-dd0349e55bf7",
"437f301d-e99a-461e-8935-f3d262b7400c"
]
}
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>a765d068-0e39-40a2-af6a-f39a8ab19b35</d2p1:guid>
<d2p1:guid>96f001ed-3bed-4cb5-97b6-7fedad9f1e4c</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-08T00:49:18.4906527+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>8ce2fc4e-c25a-4041-8619-13daf033313c</LicenseCategoryId>
<LicenseType>4</LicenseType>
<Name>sample string 1</Name>
<OwnerId>3e296d5e-e86a-430f-a942-1cf759f4d2cc</OwnerId>
<PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>596e3968-1ec4-4934-a0f7-dd0349e55bf7</d2p1:guid>
<d2p1:guid>437f301d-e99a-461e-8935-f3d262b7400c</d2p1:guid>
</PrivilegedUserRoles>
<SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>0b26dd5d-83e8-42c9-88ea-25b81949a149</d2p1:guid>
<d2p1:guid>bad564e3-90f1-499f-b8b9-98ccd01c7648</d2p1:guid>
</SeatUserGroupIds>
<StartDate>2026-03-08T00:49:18.4906527+00:00</StartDate>
<TargetUserGroupId>30154076-4021-4a87-bedd-e5bdb3a382b1</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>