foliolib.folio.api.circulation.LoanAnonymization
- class foliolib.folio.api.circulation.LoanAnonymization(tenant: str)
Bases:
foliolib.folio.FolioApiLoan Anonymization API
Loan Anonymization API
Base class of the Folio API
- Parameters
tenant (str) – Tenant id
Methods
set_byUser(userId)Note that a 422 error with haveAssociatedFeesAndFines message and key loanIds has a value that is not a JSON array but a JSON string that contains a serialized JSON array of the loan ids.
- set_byUser(userId: str)
Note that a 422 error with haveAssociatedFeesAndFines message and key loanIds has a value that is not a JSON array but a JSON string that contains a serialized JSON array of the loan ids.
POST /loan-anonymization/by-user/{userId}- Parameters
userId (str) –
- Returns
See Schema below
- Return type
dict
- Raises
OkapiRequestFatalError – Server Error
OkapiRequestUnprocessableEntity – Unprocessable Entity
Schema
{ "$schema": "http://json-schema.org/draft-04/schema#", "description": "Response schema for anonymize loans request", "type": "object", "properties": { "anonymizedLoans": { "description": "Successfully anonymized loan ids", "type": "array", "items": { "type": "string" } }, "errors": { "description": "List of errors", "id": "errors", "type": "array", "items": { "type": "object", "$ref": "../raml-util/schemas/error.schema" } } }, "additionalProperties": false }