http://localhost:9130
Storage for Patron Notice Policies
Get Patron Notice Policy list
GET /patron-notice-policy-storage/patron-notice-policies
How to calculate the totalRecords property. "exact" for the correct number, "estimated" for an estimation, "auto" to automatically select "exact" or "estimated", "none" for suppressing the totalRecords property. For details see https://github.com/folio-org/raml-module-builder#estimated-totalrecords
Example:
none
Skip over a number of elements by specifying an offset value for the query
Example:
0
Limit the number of elements returned in the response. Using limit=0 will return totalRecords with the exact value. For details about totalRecords see https://github.com/folio-org/raml-module-builder#estimated-totalrecords
Example:
10
A query expressed as a CQL string (see dev.folio.org/reference/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
searchable using CQL
Example:
(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode
name="undergrad*"
Return Patron Notice Policy list
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Collection of patron notice policies",
"type": "object",
"properties": {
"patronNoticePolicies": {
"description": "List of patron notice policies",
"id": "patronNoticePolicies",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"additionalProperties": false,
"description": "Patron notice policy",
"properties": {
"id": {
"type": "string",
"description": "Patron notice policy id, UUID"
},
"name": {
"type": "string",
"description": "Patron notice policy name"
},
"description": {
"type": "string",
"description": "Patron notice policy description"
},
"active": {
"type": "boolean",
"description": "A flag to determine if a patron notice policy is active"
},
"metadata": {
"description": "Metadata about creation and changes to policy, provided by the server (client should not provide)",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
},
"loanNotices": {
"type": "array",
"description": "List of loan notices",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent, before, after or upon",
"enum": [
"Upon At",
"Before",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "Triggering event",
"enum": [
"Due date",
"Renewed",
"Check in",
"Check out",
"Manual due date change",
"Item recalled",
"Aged to lost"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
},
"feeFineNotices": {
"type": "array",
"description": "List of fee/fine notices",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent: after or upon",
"enum": [
"Upon At",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "Triggering event",
"enum": [
"Overdue fine returned",
"Overdue fine renewed",
"Aged to lost - fine charged",
"Aged to lost & item returned - fine adjusted",
"Aged to lost & item replaced - fine adjusted"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
},
"requestNotices": {
"type": "array",
"description": "List of request notice",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent, before, after or upon",
"enum": [
"Upon At",
"Before",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "User initiated and time driven events for request related notices",
"enum": [
"Recall request",
"Hold request",
"Request expiration",
"Paging request",
"Available",
"Hold expiration",
"Request cancellation"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
}
},
"required": [
"name"
]
}
},
"totalRecords": {
"type": "integer"
}
},
"required": [
"patronNoticePolicies",
"totalRecords"
]
}
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error
Create new Patron Notice Policy
POST /patron-notice-policy-storage/patron-notice-policies
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"description": "Patron notice policy",
"properties": {
"id": {
"type": "string",
"description": "Patron notice policy id, UUID"
},
"name": {
"type": "string",
"description": "Patron notice policy name"
},
"description": {
"type": "string",
"description": "Patron notice policy description"
},
"active": {
"type": "boolean",
"description": "A flag to determine if a patron notice policy is active"
},
"metadata": {
"description": "Metadata about creation and changes to policy, provided by the server (client should not provide)",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
},
"loanNotices": {
"type": "array",
"description": "List of loan notices",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent, before, after or upon",
"enum": [
"Upon At",
"Before",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "Triggering event",
"enum": [
"Due date",
"Renewed",
"Check in",
"Check out",
"Manual due date change",
"Item recalled",
"Aged to lost"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
},
"feeFineNotices": {
"type": "array",
"description": "List of fee/fine notices",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent: after or upon",
"enum": [
"Upon At",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "Triggering event",
"enum": [
"Overdue fine returned",
"Overdue fine renewed",
"Aged to lost - fine charged",
"Aged to lost & item returned - fine adjusted",
"Aged to lost & item replaced - fine adjusted"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
},
"requestNotices": {
"type": "array",
"description": "List of request notice",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent, before, after or upon",
"enum": [
"Upon At",
"Before",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "User initiated and time driven events for request related notices",
"enum": [
"Recall request",
"Hold request",
"Request expiration",
"Paging request",
"Available",
"Hold expiration",
"Request cancellation"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
}
},
"required": [
"name"
]
}
Successfully created
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"description": "Patron notice policy",
"properties": {
"id": {
"type": "string",
"description": "Patron notice policy id, UUID"
},
"name": {
"type": "string",
"description": "Patron notice policy name"
},
"description": {
"type": "string",
"description": "Patron notice policy description"
},
"active": {
"type": "boolean",
"description": "A flag to determine if a patron notice policy is active"
},
"metadata": {
"description": "Metadata about creation and changes to policy, provided by the server (client should not provide)",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
},
"loanNotices": {
"type": "array",
"description": "List of loan notices",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent, before, after or upon",
"enum": [
"Upon At",
"Before",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "Triggering event",
"enum": [
"Due date",
"Renewed",
"Check in",
"Check out",
"Manual due date change",
"Item recalled",
"Aged to lost"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
},
"feeFineNotices": {
"type": "array",
"description": "List of fee/fine notices",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent: after or upon",
"enum": [
"Upon At",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "Triggering event",
"enum": [
"Overdue fine returned",
"Overdue fine renewed",
"Aged to lost - fine charged",
"Aged to lost & item returned - fine adjusted",
"Aged to lost & item replaced - fine adjusted"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
},
"requestNotices": {
"type": "array",
"description": "List of request notice",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent, before, after or upon",
"enum": [
"Upon At",
"Before",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "User initiated and time driven events for request related notices",
"enum": [
"Recall request",
"Hold request",
"Request expiration",
"Paging request",
"Available",
"Hold expiration",
"Request cancellation"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
}
},
"required": [
"name"
]
}
Unprocessable entity
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "errors.schema",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "error.schema",
"description": "An error",
"properties": {
"message": {
"type": "string",
"description": "Error message text"
},
"type": {
"type": "string",
"description": "Error message type"
},
"code": {
"type": "string",
"description": "Error message code"
},
"parameters": {
"description": "Error message parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "parameters.schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"message"
]
}
},
"total_records": {
"description": "Total number of errors",
"type": "integer"
}
}
}
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error
Get Patron Notice Policy by id
GET /patron-notice-policy-storage/patron-notice-policies/{patronNoticePolicyId}
Return Patron Notice Policy
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"description": "Patron notice policy",
"properties": {
"id": {
"type": "string",
"description": "Patron notice policy id, UUID"
},
"name": {
"type": "string",
"description": "Patron notice policy name"
},
"description": {
"type": "string",
"description": "Patron notice policy description"
},
"active": {
"type": "boolean",
"description": "A flag to determine if a patron notice policy is active"
},
"metadata": {
"description": "Metadata about creation and changes to policy, provided by the server (client should not provide)",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
},
"loanNotices": {
"type": "array",
"description": "List of loan notices",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent, before, after or upon",
"enum": [
"Upon At",
"Before",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "Triggering event",
"enum": [
"Due date",
"Renewed",
"Check in",
"Check out",
"Manual due date change",
"Item recalled",
"Aged to lost"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
},
"feeFineNotices": {
"type": "array",
"description": "List of fee/fine notices",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent: after or upon",
"enum": [
"Upon At",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "Triggering event",
"enum": [
"Overdue fine returned",
"Overdue fine renewed",
"Aged to lost - fine charged",
"Aged to lost & item returned - fine adjusted",
"Aged to lost & item replaced - fine adjusted"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
},
"requestNotices": {
"type": "array",
"description": "List of request notice",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent, before, after or upon",
"enum": [
"Upon At",
"Before",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "User initiated and time driven events for request related notices",
"enum": [
"Recall request",
"Hold request",
"Request expiration",
"Paging request",
"Available",
"Hold expiration",
"Request cancellation"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
}
},
"required": [
"name"
]
}
Not found
Media type: text/plain
Type: any
Example:
Not found
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error
Delete Patron Notice Policy by id
DELETE /patron-notice-policy-storage/patron-notice-policies/{patronNoticePolicyId}
Source record deleted
Bad request, e.g. malformed request body, query parameter or constraint violation.
Media type: text/plain
Type: any
Example:
Cannot delete in use notice policy
There is no source record for that patronNoticePolicyId
Media type: text/plain
Type: any
Example:
Not found
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
Internal server error
Update Patron Notice Policy by id
PUT /patron-notice-policy-storage/patron-notice-policies/{patronNoticePolicyId}
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"description": "Patron notice policy",
"properties": {
"id": {
"type": "string",
"description": "Patron notice policy id, UUID"
},
"name": {
"type": "string",
"description": "Patron notice policy name"
},
"description": {
"type": "string",
"description": "Patron notice policy description"
},
"active": {
"type": "boolean",
"description": "A flag to determine if a patron notice policy is active"
},
"metadata": {
"description": "Metadata about creation and changes to policy, provided by the server (client should not provide)",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
},
"loanNotices": {
"type": "array",
"description": "List of loan notices",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent, before, after or upon",
"enum": [
"Upon At",
"Before",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "Triggering event",
"enum": [
"Due date",
"Renewed",
"Check in",
"Check out",
"Manual due date change",
"Item recalled",
"Aged to lost"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
},
"feeFineNotices": {
"type": "array",
"description": "List of fee/fine notices",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent: after or upon",
"enum": [
"Upon At",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "Triggering event",
"enum": [
"Overdue fine returned",
"Overdue fine renewed",
"Aged to lost - fine charged",
"Aged to lost & item returned - fine adjusted",
"Aged to lost & item replaced - fine adjusted"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
},
"requestNotices": {
"type": "array",
"description": "List of request notice",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Notice name"
},
"templateId": {
"type": "string",
"description": "Template id, UUID"
},
"templateName": {
"type": "string",
"description": "Template name"
},
"format": {
"type": "string",
"description": "Notice format, send through email, sms etc.",
"enum": [
"Email",
"SMS",
"Print"
]
},
"frequency": {
"type": "string",
"description": "Frequency, send it once or more",
"enum": [
"One time",
"Recurring"
]
},
"realTime": {
"type": "boolean",
"description": "Is this real time event"
},
"sendOptions": {
"type": "object",
"description": "Notice sending options",
"additionalProperties": false,
"properties": {
"sendHow": {
"type": "string",
"description": "Defines how notice should be sent, before, after or upon",
"enum": [
"Upon At",
"Before",
"After"
]
},
"sendWhen": {
"type": "string",
"description": "User initiated and time driven events for request related notices",
"enum": [
"Recall request",
"Hold request",
"Request expiration",
"Paging request",
"Available",
"Hold expiration",
"Request cancellation"
]
},
"sendBy": {
"type": "object",
"description": "Delay before the first attempt to send a notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
},
"sendEvery": {
"type": "object",
"description": "Interval between attempts to send a recurring notice",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"duration": {
"type": "integer",
"description": "Interval duration, number of time units",
"minimum": 1,
"maximum": 100
},
"intervalId": {
"type": "string",
"description": "Unit of time",
"enum": [
"Minutes",
"Hours",
"Days",
"Weeks",
"Months",
"Years"
]
}
},
"required": [
"duration",
"intervalId"
],
"additionalProperties": false
}
},
"required": [
"sendWhen"
]
}
},
"required": [
"templateId",
"format",
"realTime"
]
}
}
},
"required": [
"name"
]
}
Successfully updated
Not found
Media type: text/plain
Type: any
Example:
Not found
Unprocessable entity
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "errors.schema",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "error.schema",
"description": "An error",
"properties": {
"message": {
"type": "string",
"description": "Error message text"
},
"type": {
"type": "string",
"description": "Error message type"
},
"code": {
"type": "string",
"description": "Error message code"
},
"parameters": {
"description": "Error message parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "parameters.schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"message"
]
}
},
"total_records": {
"description": "Total number of errors",
"type": "integer"
}
}
}
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error