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": "7364d40d-8a7f-4f05-a30f-d2e54f97757e",
"ProductId": "eb584145-a7fb-4985-8189-faf3211527ec",
"AccountId": "adc95e03-ada9-438e-9b16-20fa1fb2156d",
"ProductName": "sample string 5",
"Isbn": "sample string 6",
"StartDate": "2026-01-02T20:48:19.849763+00:00",
"EndDate": "2026-01-02T20:48:19.849763+00:00",
"TopicName": "sample string 7",
"Topic": "bd6c7f0a-b7e8-4631-b9eb-505a06adc406",
"AccessType": 8,
"AccessTypeName": "sample string 9",
"LicenseType": 10,
"LicenseTypeName": "sample string 11",
"IsActive": true
},
{
"Id": "sample string 1",
"LicenseId": "7364d40d-8a7f-4f05-a30f-d2e54f97757e",
"ProductId": "eb584145-a7fb-4985-8189-faf3211527ec",
"AccountId": "adc95e03-ada9-438e-9b16-20fa1fb2156d",
"ProductName": "sample string 5",
"Isbn": "sample string 6",
"StartDate": "2026-01-02T20:48:19.849763+00:00",
"EndDate": "2026-01-02T20:48:19.849763+00:00",
"TopicName": "sample string 7",
"Topic": "bd6c7f0a-b7e8-4631-b9eb-505a06adc406",
"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>adc95e03-ada9-438e-9b16-20fa1fb2156d</d2p1:AccountId>
<d2p1:EndDate>2026-01-02T20:48:19.849763+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>7364d40d-8a7f-4f05-a30f-d2e54f97757e</d2p1:LicenseId>
<d2p1:LicenseType>10</d2p1:LicenseType>
<d2p1:LicenseTypeName>sample string 11</d2p1:LicenseTypeName>
<d2p1:ProductId>eb584145-a7fb-4985-8189-faf3211527ec</d2p1:ProductId>
<d2p1:ProductName>sample string 5</d2p1:ProductName>
<d2p1:StartDate>2026-01-02T20:48:19.849763+00:00</d2p1:StartDate>
<d2p1:Topic>bd6c7f0a-b7e8-4631-b9eb-505a06adc406</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>adc95e03-ada9-438e-9b16-20fa1fb2156d</d2p1:AccountId>
<d2p1:EndDate>2026-01-02T20:48:19.849763+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>7364d40d-8a7f-4f05-a30f-d2e54f97757e</d2p1:LicenseId>
<d2p1:LicenseType>10</d2p1:LicenseType>
<d2p1:LicenseTypeName>sample string 11</d2p1:LicenseTypeName>
<d2p1:ProductId>eb584145-a7fb-4985-8189-faf3211527ec</d2p1:ProductId>
<d2p1:ProductName>sample string 5</d2p1:ProductName>
<d2p1:StartDate>2026-01-02T20:48:19.849763+00:00</d2p1:StartDate>
<d2p1:Topic>bd6c7f0a-b7e8-4631-b9eb-505a06adc406</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>