GET /api/.../patrons/{id}/readinghistory?countOnly={countOnly}
Return the number of reading history records associated with the patron.
Permission IDs found here.
Name |
---|
AccessPatronServices_Allow |
PatronStatus_Access |
Name | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | The unique id assigned to the patron. |
countOnly | Boolean | Yes | Return the number of reading history records associated with the patron. Value must be set to True. |
1
Code | Description |
---|---|
200 | OK. Success |
GET /api/.../patrons/{id}/readinghistory
Returns list of all reading history records associated with the patron.
GET /api/.../patrons/{id}/readinghistory?startIndex={startIndex}&numRecords={numRecords}
Returns a "paginated" list of reading history records associated with the patron.
Permission IDs found here.
Name |
---|
AccessPatronServices_Allow |
PatronStatus_Access |
PatronStatus_DisplayReaderServices |
Name | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | The unique id assigned to the patron. |
startIndex | Integer | No | Position to start record retrieval. When set to -1, return ALL records. |
numRecords | Integer | No | Number of records to return. Ignored when startIndex is set to -1. |
[
{
"ItemRecordID": 1,
"IsDeleted": true,
"Title": "sample string 1",
"BrowseTitleNonFilingCount": 0,
"Author": "sample string 2",
"Format": "sample string 3",
"DateCheckedOut": "2013-03-01T10:15:48.7459162-05:00",
"LoaningLibrary": "sample string 5",
"Rating": 1,
"Notes": "sample string 6",
"FormatID": 64,
"BibliographicRecordID": 1,
"DisplayInPAC": true,
"TitleRatingID": 1,
"PatronReadingHistoryID": 8
},
{
"ItemRecordID": 1,
"IsDeleted": false,
"Title": "sample string 1",
"BrowseTitleNonFilingCount": 0,
"Author": "sample string 2",
"Format": "sample string 3",
"DateCheckedOut": "2013-03-01T10:15:48.7459162-05:00",
"LoaningLibrary": "sample string 5",
"Rating": 1,
"Notes": "sample string 6",
"FormatID": 64,
"BibliographicRecordID": 1,
"DisplayInPAC": true,
"TitleRatingID": 1,
"PatronReadingHistoryID": 8
},
{
"ItemRecordID": 1,
"IsDeleted": false,
"Title": "sample string 1",
"BrowseTitleNonFilingCount": 0,
"Author": "sample string 2",
"Format": "sample string 3",
"DateCheckedOut": "2013-03-01T10:15:48.7459162-05:00",
"LoaningLibrary": "sample string 5",
"Rating": 1,
"Notes": "sample string 6",
"FormatID": 64,
"BibliographicRecordID": 1,
"DisplayInPAC": true,
"TitleRatingID": 1,
"PatronReadingHistoryID": 8
}
]
Code | Description |
---|---|
200 | OK. Success |
DELETE /api/.../patrons/{id}/readinghistory/{historyid},{historyid},{historyid}
Delete one or more patron reading history items.
Permission IDs found here.
Name | |
---|---|
Note | |
AccessPatronServices_Allow | |
PatronStatus_Access | |
PatronStatus_RemoveORSPatronReadingHistory | Required when deleting reading history for an Outreach Services type of patron. |
PatronStatus_RemoveNonORSPatronReadingHistory | Required when deleting reading history for a non-Outreach Services patron. |
Name | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | The unique id assigned to the patron. |
historyid | Integer | Yes | One or more (comma separated) reading history IDs to delete |
Code | Description |
---|---|
200 | OK. Success |
400 | FAILURE. Invalid reading history ID for supplied patron ID or reading history ID not found |
404 | FAILURE. Invalid patron ID specified |
409 | CONFLICT. Patron record is secured. |