Outreach Patron's Subjects

Get Authors

GET /api/.../patrons/{id}/readerservices/preferences/subject

Return a list of all existing outreach patron's subjects.

Request Information

Response Information

Example
application/json, text/json
{
  "PatronID": 357374,
  "IncludeTerms": [
    "Comedy"
  ],
  "ExcludeTerms": []
}

Permission IDs found here.

Name
AccessPatronServices_Allow
PatronStatus_Access
PatronStatus_DisplayReaderServices
PatronStatus_ModifyReaderServices

Update Subjects

PUT /api/.../patrons/{id}/readerservices/preferences/subject

Update outreach patron's subject list.

Required Permissions

Permission IDs found here.

Name
AccessPatronServices_Allow
PatronStatus_Access
PatronStatus_DisplayReaderServices
PatronStatus_ModifyReaderServices

Request Information

Parameters
Name Type Required Description
orsData DtoORSPatronTerms Yes Define this parameter in the request body.
id Integer Yes The unique id assigned to the patron.
DtoORSPatronTerms
Property Type Nullable Description
PatronID Int No The unique id assigned to the patron.
IncludeTerms List of strings Yes List of subjects that are included for search.
ExcludeTerms List of strings Yes List of subjects that are excluded for search.
Request body
Example
application/json, text/json
{
  "PatronID": 357374,
  "IncludeTerms": [
   "Comedy"
  ],
  "ExcludeTerms": [
    "Biogrphy"
    ]
}
      

Response Information

Returns updated list of subjects if update is successful.
Example
application/json, text/json
{
  "PatronID": 357374,
  "IncludeTerms": [
   "Comedy"
  ],
  "ExcludeTerms": [
    "Biogrphy"
    ]
}

HTTP Response Codes

Code Description
200 OK. Success
400 Null object. Bad request
409 CONFLICT. Patron record is secured.