foliolib.folio.api.tlr.Ecstlr
- class foliolib.folio.api.tlr.Ecstlr(tenant: str)
Bases:
foliolib.folio.FolioApiECS TLR API
Base class of the Folio API
- Parameters
tenant (str) – Tenant id
Methods
deleteecstlrbyid(requestId)Remove ECS TLR by ID
getecstlrbyid(requestId)Retrieve ECS TLR by ID
postecstlr(ecs_tlr)Create ECS TLR
putecstlrbyid(requestId, ecs_tlr)Update ECS TLR by ID
- deleteecstlrbyid(requestId)
Remove ECS TLR by ID
DELETE /tlr/ecs-tlr/{requestId}- Parameters
requestId (str) – (format: uuid)
- Raises
OkapiRequestError – Validation errors
OkapiRequestNotFound – Not found
OkapiRequestFatalError – When unhandled exception occurred during code execution, e.g. NullPointerException
- getecstlrbyid(requestId)
Retrieve ECS TLR by ID
GET /tlr/ecs-tlr/{requestId}- Parameters
requestId (str) – (format: uuid)
- Returns
See Schema below.
- Return type
dict
- Raises
OkapiRequestError – Validation errors
OkapiRequestNotFound – Not found
OkapiRequestFatalError – When unhandled exception occurred during code execution, e.g. NullPointerException
Schema
{ "description": "ECS TLR - title level requests in a multi-tenant environment with \u0421onsortia support enabled", "type": "object", "properties": { "id": { "description": "ID of the ECS TLR", "$ref": "uuid.yaml" }, "instanceId": { "description": "ID of the instance being requested", "$ref": "uuid.yaml" }, "requesterId": { "description": "ID of the requesting patron (user)", "$ref": "uuid.yaml" }, "requestType": { "description": "Whether the item should be held upon return, recalled or paged for", "type": "string", "enum": [ "Hold", "Recall", "Page" ] }, "requestLevel": { "description": "Level of the request - Item or Title", "type": "string", "enum": [ "Item", "Title" ] }, "requestExpirationDate": { "description": "Date when the request expires", "type": "string", "format": "date-time" }, "requestDate": { "description": "Date when the request was placed", "type": "string", "format": "date-time" }, "patronComments": { "description": "Comments made by the patron", "type": "string" }, "fulfillmentPreference": { "description": "How should the request be fulfilled (whether the item should be kept on the hold shelf for collection or delivered to the requester)", "type": "string", "enum": [ "Hold Shelf", "Delivery" ] }, "pickupServicePointId": { "description": "The ID of the Service Point where this request can be picked up", "$ref": "uuid.yaml" }, "itemId": { "description": "ID of the item being requested", "$ref": "uuid.yaml" }, "secondaryRequestId": { "description": "Secondary request ID", "$ref": "uuid.yaml" }, "secondaryRequestTenantId": { "description": "ID of the tenant secondary request was created in", "type": "string" } }, "required": [ "instanceId", "requesterId", "requestType", "requestLevel", "fulfillmentPreference", "requestDate" ] }
- postecstlr(ecs_tlr)
Create ECS TLR
POST /tlr/ecs-tlr- Parameters
ecs-tlr (dict) – See Schema below.
- Returns
See Schema below.
- Return type
dict
- Raises
OkapiRequestError – Validation errors
OkapiRequestFatalError – When unhandled exception occurred during code execution, e.g. NullPointerException
Schema
{ "description": "ECS TLR - title level requests in a multi-tenant environment with \u0421onsortia support enabled", "type": "object", "properties": { "id": { "description": "ID of the ECS TLR", "$ref": "uuid.yaml" }, "instanceId": { "description": "ID of the instance being requested", "$ref": "uuid.yaml" }, "requesterId": { "description": "ID of the requesting patron (user)", "$ref": "uuid.yaml" }, "requestType": { "description": "Whether the item should be held upon return, recalled or paged for", "type": "string", "enum": [ "Hold", "Recall", "Page" ] }, "requestLevel": { "description": "Level of the request - Item or Title", "type": "string", "enum": [ "Item", "Title" ] }, "requestExpirationDate": { "description": "Date when the request expires", "type": "string", "format": "date-time" }, "requestDate": { "description": "Date when the request was placed", "type": "string", "format": "date-time" }, "patronComments": { "description": "Comments made by the patron", "type": "string" }, "fulfillmentPreference": { "description": "How should the request be fulfilled (whether the item should be kept on the hold shelf for collection or delivered to the requester)", "type": "string", "enum": [ "Hold Shelf", "Delivery" ] }, "pickupServicePointId": { "description": "The ID of the Service Point where this request can be picked up", "$ref": "uuid.yaml" }, "itemId": { "description": "ID of the item being requested", "$ref": "uuid.yaml" }, "secondaryRequestId": { "description": "Secondary request ID", "$ref": "uuid.yaml" }, "secondaryRequestTenantId": { "description": "ID of the tenant secondary request was created in", "type": "string" } }, "required": [ "instanceId", "requesterId", "requestType", "requestLevel", "fulfillmentPreference", "requestDate" ] }
- putecstlrbyid(requestId, ecs_tlr)
Update ECS TLR by ID
PUT /tlr/ecs-tlr/{requestId}- Parameters
requestId (str) – (format: uuid)
ecs-tlr (dict) – See Schema below.
- Raises
OkapiRequestError – Validation errors
OkapiRequestNotFound – Not found
OkapiRequestFatalError – When unhandled exception occurred during code execution, e.g. NullPointerException
Schema
{ "description": "ECS TLR - title level requests in a multi-tenant environment with \u0421onsortia support enabled", "type": "object", "properties": { "id": { "description": "ID of the ECS TLR", "$ref": "uuid.yaml" }, "instanceId": { "description": "ID of the instance being requested", "$ref": "uuid.yaml" }, "requesterId": { "description": "ID of the requesting patron (user)", "$ref": "uuid.yaml" }, "requestType": { "description": "Whether the item should be held upon return, recalled or paged for", "type": "string", "enum": [ "Hold", "Recall", "Page" ] }, "requestLevel": { "description": "Level of the request - Item or Title", "type": "string", "enum": [ "Item", "Title" ] }, "requestExpirationDate": { "description": "Date when the request expires", "type": "string", "format": "date-time" }, "requestDate": { "description": "Date when the request was placed", "type": "string", "format": "date-time" }, "patronComments": { "description": "Comments made by the patron", "type": "string" }, "fulfillmentPreference": { "description": "How should the request be fulfilled (whether the item should be kept on the hold shelf for collection or delivered to the requester)", "type": "string", "enum": [ "Hold Shelf", "Delivery" ] }, "pickupServicePointId": { "description": "The ID of the Service Point where this request can be picked up", "$ref": "uuid.yaml" }, "itemId": { "description": "ID of the item being requested", "$ref": "uuid.yaml" }, "secondaryRequestId": { "description": "Secondary request ID", "$ref": "uuid.yaml" }, "secondaryRequestTenantId": { "description": "ID of the tenant secondary request was created in", "type": "string" } }, "required": [ "instanceId", "requesterId", "requestType", "requestLevel", "fulfillmentPreference", "requestDate" ] }