POST api/user/{id}/licenses
Returns all licenses in specific User structure based on provided filters.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
GetLicensesForUserRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| KnownSearchFields | Collection of string |
None. |
|
| KnownSortFields | Collection of string |
None. |
|
| PageSize | integer |
None. |
|
| PageIndex | integer |
None. |
|
| SearchBy | Collection of Filter |
None. |
|
| SortBy | Collection of Sort |
None. |
Request Formats
application/json, text/json
Sample:
{
"KnownSearchFields": [
"ProductName",
"Isbn",
"StartDate",
"EndDate",
"Topic",
"TopicName",
"AccessType",
"AccessTypeName",
"LicenseType",
"LicenseTypeName",
"IsActive",
"SubscriptionNumber"
],
"KnownSortFields": [
"ProductName",
"Isbn",
"StartDate",
"EndDate",
"TopicName",
"AccessTypeName",
"LicenseTypeName",
"SubscriptionNumber"
],
"PageSize": 1,
"PageIndex": 2,
"SearchBy": [
{
"Key": "sample string 1",
"Value": {},
"Type": 0
},
{
"Key": "sample string 1",
"Value": {},
"Type": 0
}
],
"SortBy": [
{
"Key": "sample string 1",
"Order": 0
},
{
"Key": "sample string 1",
"Order": 0
}
]
}
application/xml, text/xml
Sample:
<GetLicensesForUserRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Requests.User">
<KnownSearchFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
<d2p1:string>ProductName</d2p1:string>
<d2p1:string>Isbn</d2p1:string>
<d2p1:string>StartDate</d2p1:string>
<d2p1:string>EndDate</d2p1:string>
<d2p1:string>Topic</d2p1:string>
<d2p1:string>TopicName</d2p1:string>
<d2p1:string>AccessType</d2p1:string>
<d2p1:string>AccessTypeName</d2p1:string>
<d2p1:string>LicenseType</d2p1:string>
<d2p1:string>LicenseTypeName</d2p1:string>
<d2p1:string>IsActive</d2p1:string>
<d2p1:string>SubscriptionNumber</d2p1:string>
</KnownSearchFields>
<KnownSortFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
<d2p1:string>ProductName</d2p1:string>
<d2p1:string>Isbn</d2p1:string>
<d2p1:string>StartDate</d2p1:string>
<d2p1:string>EndDate</d2p1:string>
<d2p1:string>TopicName</d2p1:string>
<d2p1:string>AccessTypeName</d2p1:string>
<d2p1:string>LicenseTypeName</d2p1:string>
<d2p1:string>SubscriptionNumber</d2p1:string>
</KnownSortFields>
<PageIndex xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">2</PageIndex>
<PageSize xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">1</PageSize>
<SearchBy xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
<Filter>
<Key>sample string 1</Key>
<Type>None</Type>
<Value />
</Filter>
<Filter>
<Key>sample string 1</Key>
<Type>None</Type>
<Value />
</Filter>
</SearchBy>
<SortBy xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
<Sort>
<Key>sample string 1</Key>
<Order>None</Order>
</Sort>
<Sort>
<Key>sample string 1</Key>
<Order>None</Order>
</Sort>
</SortBy>
</GetLicensesForUserRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiCollectionResponseOfGetLicensesForUserResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| PageSize | integer |
None. |
|
| PageIndex | integer |
None. |
|
| Total | integer |
None. |
|
| SearchBy | Collection of Filter |
None. |
|
| SortBy | Collection of Sort |
None. |
|
| Data | Collection of GetLicensesForUserResponse |
None. |
|
| Errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"PageSize": 1,
"PageIndex": 2,
"Total": 3,
"SearchBy": [
{
"Key": "sample string 1",
"Value": {},
"Type": 0
},
{
"Key": "sample string 1",
"Value": {},
"Type": 0
}
],
"SortBy": [
{
"Key": "sample string 1",
"Order": 0
},
{
"Key": "sample string 1",
"Order": 0
}
],
"Data": [
{
"Id": "sample string 1",
"LicenseId": "d07d8575-26fb-4cba-bba8-a2397f686ba2",
"ProductId": "daf7c141-549a-4839-9e16-39eada76a4eb",
"AccountId": "2b422f9e-7d9c-4d16-bb9c-cd853811a912",
"ProductName": "sample string 5",
"Isbn": "sample string 6",
"StartDate": "2025-12-25T15:52:15.2961121+00:00",
"EndDate": "2025-12-25T15:52:15.2961121+00:00",
"TopicName": "sample string 7",
"Topic": "7361d910-314d-4665-ad5e-1b574c409829",
"AccessType": 8,
"AccessTypeName": "sample string 9",
"LicenseType": 10,
"LicenseTypeName": "sample string 11",
"IsActive": true
},
{
"Id": "sample string 1",
"LicenseId": "d07d8575-26fb-4cba-bba8-a2397f686ba2",
"ProductId": "daf7c141-549a-4839-9e16-39eada76a4eb",
"AccountId": "2b422f9e-7d9c-4d16-bb9c-cd853811a912",
"ProductName": "sample string 5",
"Isbn": "sample string 6",
"StartDate": "2025-12-25T15:52:15.2961121+00:00",
"EndDate": "2025-12-25T15:52:15.2961121+00:00",
"TopicName": "sample string 7",
"Topic": "7361d910-314d-4665-ad5e-1b574c409829",
"AccessType": 8,
"AccessTypeName": "sample string 9",
"LicenseType": 10,
"LicenseTypeName": "sample string 11",
"IsActive": true
}
],
"Errors": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<ApiCollectionResponseOfGetLicensesForUserResponsedU_PB272I xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Alice.Dto.Responses.User">
<d2p1:GetLicensesForUserResponse>
<d2p1:AccessType>8</d2p1:AccessType>
<d2p1:AccessTypeName>sample string 9</d2p1:AccessTypeName>
<d2p1:AccountId>2b422f9e-7d9c-4d16-bb9c-cd853811a912</d2p1:AccountId>
<d2p1:EndDate>2025-12-25T15:52:15.2961121+00:00</d2p1:EndDate>
<d2p1:Id>sample string 1</d2p1:Id>
<d2p1:IsActive>true</d2p1:IsActive>
<d2p1:Isbn>sample string 6</d2p1:Isbn>
<d2p1:LicenseId>d07d8575-26fb-4cba-bba8-a2397f686ba2</d2p1:LicenseId>
<d2p1:LicenseType>10</d2p1:LicenseType>
<d2p1:LicenseTypeName>sample string 11</d2p1:LicenseTypeName>
<d2p1:ProductId>daf7c141-549a-4839-9e16-39eada76a4eb</d2p1:ProductId>
<d2p1:ProductName>sample string 5</d2p1:ProductName>
<d2p1:StartDate>2025-12-25T15:52:15.2961121+00:00</d2p1:StartDate>
<d2p1:Topic>7361d910-314d-4665-ad5e-1b574c409829</d2p1:Topic>
<d2p1:TopicName>sample string 7</d2p1:TopicName>
</d2p1:GetLicensesForUserResponse>
<d2p1:GetLicensesForUserResponse>
<d2p1:AccessType>8</d2p1:AccessType>
<d2p1:AccessTypeName>sample string 9</d2p1:AccessTypeName>
<d2p1:AccountId>2b422f9e-7d9c-4d16-bb9c-cd853811a912</d2p1:AccountId>
<d2p1:EndDate>2025-12-25T15:52:15.2961121+00:00</d2p1:EndDate>
<d2p1:Id>sample string 1</d2p1:Id>
<d2p1:IsActive>true</d2p1:IsActive>
<d2p1:Isbn>sample string 6</d2p1:Isbn>
<d2p1:LicenseId>d07d8575-26fb-4cba-bba8-a2397f686ba2</d2p1:LicenseId>
<d2p1:LicenseType>10</d2p1:LicenseType>
<d2p1:LicenseTypeName>sample string 11</d2p1:LicenseTypeName>
<d2p1:ProductId>daf7c141-549a-4839-9e16-39eada76a4eb</d2p1:ProductId>
<d2p1:ProductName>sample string 5</d2p1:ProductName>
<d2p1:StartDate>2025-12-25T15:52:15.2961121+00:00</d2p1:StartDate>
<d2p1:Topic>7361d910-314d-4665-ad5e-1b574c409829</d2p1:Topic>
<d2p1:TopicName>sample string 7</d2p1:TopicName>
</d2p1:GetLicensesForUserResponse>
</Data>
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
<PageIndex>2</PageIndex>
<PageSize>1</PageSize>
<SearchBy>
<Filter>
<Key>sample string 1</Key>
<Type>None</Type>
<Value />
</Filter>
<Filter>
<Key>sample string 1</Key>
<Type>None</Type>
<Value />
</Filter>
</SearchBy>
<SortBy>
<Sort>
<Key>sample string 1</Key>
<Order>None</Order>
</Sort>
<Sort>
<Key>sample string 1</Key>
<Order>None</Order>
</Sort>
</SortBy>
<Total>3</Total>
</ApiCollectionResponseOfGetLicensesForUserResponsedU_PB272I>