4 "x-mojo-to": "Patrons#list",
5 "operationId": "listPatrons",
13 "description": "Search on patron_id",
19 "description": "Case insensitive search on cardnumber",
25 "description": "Case insensitive search on surname",
31 "description": "Case insensitive search on firstname",
37 "description": "Case insensitive search on title",
43 "description": "Case insensitive search on othernames",
49 "description": "Case insensitive search on initials",
53 "name": "street_number",
55 "description": "Case insensitive search on streetnumber",
59 "name": "street_type",
61 "description": "Case insensitive search on streettype",
67 "description": "Case insensitive search on address",
73 "description": "Case insensitive search on address2",
79 "description": "Case insensitive search on city",
85 "description": "Case insensitive search on state",
89 "name": "postal_code",
91 "description": "Case insensitive search on zipcode",
97 "description": "Case insensitive search on country",
103 "description": "Case insensitive search on email",
109 "description": "Case insensitive search on phone",
115 "description": "Case insensitive search on mobile",
121 "description": "Case insensitive search on fax",
125 "name": "secondary_email",
127 "description": "Case insensitive search on secondary_email",
131 "name": "secondary_phone",
133 "description": "Case insensitive search on secondary_phone",
137 "name": "altaddress_street_number",
139 "description": "Case insensitive search on altaddress_street_number",
143 "name": "altaddress_street_type",
145 "description": "Case insensitive search on altaddress_street_type",
149 "name": "altaddress_address",
151 "description": "Case insensitive search on altaddress_address",
155 "name": "altaddress_address2",
157 "description": "Case insensitive search on altaddress_address2",
161 "name": "altaddress_city",
163 "description": "Case insensitive search on altaddress_city",
167 "name": "altaddress_state",
169 "description": "Case insensitive search on altaddress_state",
173 "name": "altaddress_postal_code",
175 "description": "Case insensitive search on altaddress_postal_code",
179 "name": "altaddress_country",
181 "description": "Case insensitive search on altaddress_country",
185 "name": "altaddress_email",
187 "description": "Case insensitive search on altaddress_email",
191 "name": "altaddress_phone",
193 "description": "Case insensitive search on altaddress_phone",
197 "name": "date_of_birth",
199 "description": "Case insensitive search on date_of_birth",
203 "name": "library_id",
205 "description": "Case insensitive search on library_id",
209 "name": "category_id",
211 "description": "Case insensitive search on category_id",
215 "name": "date_enrolled",
217 "description": "Case insensitive search on date_enrolled",
221 "name": "expiry_date",
223 "description": "Case insensitive search on expiry_date",
227 "name": "incorrect_address",
229 "description": "Search on incorrect_address",
233 "name": "patron_card_lost",
235 "description": "Search on patron_card_lost",
239 "name": "restricted",
241 "description": "Filter search by restricted",
245 "name": "guarantor_id",
247 "description": "Search on guarantor_id",
251 "name": "staff_notes",
253 "description": "Case insensitive search on staff_notes",
257 "name": "relationship_type",
259 "description": "Case insensitive search on relationship_type",
265 "description": "Case insensitive search on gender",
271 "description": "Case insensitive search on userid",
275 "name": "opac_notes",
277 "description": "Case insensitive search on opac_notes",
281 "name": "altaddress_notes",
283 "description": "Case insensitive search on altaddress_notes",
287 "name": "statistics_1",
289 "description": "Case insensitive search on statistics_1",
293 "name": "statistics_2",
295 "description": "Case insensitive search on statistics_2",
299 "name": "altcontact_firstname",
301 "description": "Case insensitive search on altcontact_firstname",
305 "name": "altcontact_surname",
307 "description": "Case insensitive search on altcontact_surname",
311 "name": "altcontact_address",
313 "description": "Case insensitive search on altcontact_address",
317 "name": "altcontact_address2",
319 "description": "Case insensitive search on altcontact_address2",
323 "name": "altcontact_city",
325 "description": "Case insensitive search on altcontact_city",
329 "name": "altcontact_state",
331 "description": "Case insensitive search on altcontact_state",
335 "name": "altcontact_postal_code",
337 "description": "Case insensitive search on altcontact_postal_code",
341 "name": "altcontact_country",
343 "description": "Case insensitive search on altcontact_country",
347 "name": "altcontact_phone",
349 "description": "Case insensitive search on altcontact_phone",
353 "name": "sms_number",
355 "description": "Case insensitive search on sms_number",
359 "name": "sms_provider_id",
361 "description": "Case insensitive search on sms_provider_id",
367 "description": "Search on privacy",
371 "name": "privacy_guarantor_checkouts",
373 "description": "Search on privacy_guarantor_checkouts",
377 "name": "check_previous_checkout",
379 "description": "Case insensitive search on check_previous_checkout",
383 "name": "updated_on",
385 "description": "Search on updated_on",
391 "description": "Case insensitive search on last_seen",
397 "description": "Case insensitive search on lang",
401 "name": "login_attempts",
403 "description": "Search on login_attempts",
407 "$ref": "../parameters.json#/match"
409 "$ref": "../parameters.json#/order_by"
411 "$ref": "../parameters.json#/page"
413 "$ref": "../parameters.json#/per_page"
417 "description": "A list of patrons",
421 "$ref": "../definitions.json#/patron"
426 "description": "Authentication required",
428 "$ref": "../definitions.json#/error"
432 "description": "Access forbidden",
434 "$ref": "../definitions.json#/error"
438 "description": "Internal server error",
440 "$ref": "../definitions.json#/error"
444 "x-koha-authorization": {
451 "x-mojo-to": "Patrons#add",
452 "operationId": "addPatron",
457 "description": "A JSON object containing information about the new patron",
460 "$ref": "../definitions.json#/patron"
463 "consumes": ["application/json"],
464 "produces": ["application/json"],
467 "description": "A successfully created patron",
470 "$ref": "../definitions.json#/patron"
475 "description": "Bad parameter",
477 "$ref": "../definitions.json#/error"
481 "description": "Authentication required",
483 "$ref": "../definitions.json#/error"
487 "description": "Access forbidden",
489 "$ref": "../definitions.json#/error"
493 "description": "Resource not found",
495 "$ref": "../definitions.json#/error"
499 "description": "Conflict in creating resource",
501 "$ref": "../definitions.json#/error"
505 "description": "Internal server error",
507 "$ref": "../definitions.json#/error"
511 "description": "Under maintenance",
513 "$ref": "../definitions.json#/error"
517 "x-koha-authorization": {
519 "borrowers": "edit_borrowers"
524 "/patrons/{patron_id}": {
526 "x-mojo-to": "Patrons#get",
527 "operationId": "getPatron",
530 "$ref": "../parameters.json#/patron_id_pp"
537 "description": "A patron",
539 "$ref": "../definitions.json#/patron"
543 "description": "Authentication required",
545 "$ref": "../definitions.json#/error"
549 "description": "Access forbidden",
551 "$ref": "../definitions.json#/error"
555 "description": "Patron not found",
557 "$ref": "../definitions.json#/error"
561 "description": "Internal server error",
563 "$ref": "../definitions.json#/error"
567 "description": "Under maintenance",
569 "$ref": "../definitions.json#/error"
573 "x-koha-authorization": {
575 "allow-guarantor": true,
577 "borrowers": "edit_borrowers"
582 "x-mojo-to": "Patrons#update",
583 "operationId": "updatePatron",
587 "$ref": "../parameters.json#/patron_id_pp"
592 "description": "A JSON object containing new information about existing patron",
595 "$ref": "../definitions.json#/patron"
599 "consumes": ["application/json"],
600 "produces": ["application/json"],
603 "description": "A successfully updated patron",
606 "$ref": "../definitions.json#/patron"
611 "description": "Accepted and waiting for librarian verification",
617 "description": "No Content",
623 "description": "Bad parameter",
625 "$ref": "../definitions.json#/error"
629 "description": "Access forbidden",
631 "$ref": "../definitions.json#/error"
635 "description": "Resource not found",
637 "$ref": "../definitions.json#/error"
641 "description": "Conflict in updating resource",
643 "$ref": "../definitions.json#/error"
647 "description": "Internal server error",
649 "$ref": "../definitions.json#/error"
653 "x-koha-authorization": {
660 "x-mojo-to": "Patrons#delete",
661 "operationId": "deletePatron",
664 "$ref": "../parameters.json#/patron_id_pp"
666 "produces": ["application/json"],
669 "description": "Patron deleted successfully",
675 "description": "Patron deletion failed",
677 "$ref": "../definitions.json#/error"
681 "description": "Authentication required",
683 "$ref": "../definitions.json#/error"
687 "description": "Access forbidden",
689 "$ref": "../definitions.json#/error"
693 "description": "Patron not found",
695 "$ref": "../definitions.json#/error"
699 "x-koha-authorization": {