Outreach Patron's Authors

Get Authors

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

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

Request Information

Response Information

Example
application/json, text/json
{
  "PatronID": 357374,
  "IncludeTerms": [
    "WhomEver",
    "Grisham"
  ],
  "ExcludeTerms": [
    "James Smith"
  ]
}

Permission IDs found here.

Name
AccessPatronServices_Allow
PatronStatus_Access
PatronStatus_DisplayReaderServices
PatronStatus_ModifyReaderServices

Update Authors

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

Update outreach patron's authors 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 authors that are included for search.
ExcludeTerms List of strings Yes List of authors that are excluded for search.
Request body
Example
application/json, text/json
{
  "PatronID": 357374,
  "IncludeTerms": [
    "WhomEver",
    "Grisham"
  ],
  "ExcludeTerms": [
    "Jack And Jill"
  ]
}
      

Response Information

Returns updated list of authors if update is successful.
Example
application/json, text/json
{
   {
      "PatronID": 357374,
      "IncludeTerms": [
        "WhomEver",
        "Grisham"
      ],
      "ExcludeTerms": [
        "Jack And Jill"
      ]
    }
}

HTTP Response Codes

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