4 "x-mojo-to": "Patrons#list",
5 "operationId": "listPatrons",
7 "summary": "List patrons",
14 "description": "Search on patron_id",
20 "description": "Case insensitive search on cardnumber",
26 "description": "Case insensitive search on surname",
32 "description": "Case insensitive search on firstname",
38 "description": "Case insensitive search on title",
44 "description": "Case insensitive search on othernames",
50 "description": "Case insensitive search on initials",
54 "name": "street_number",
56 "description": "Case insensitive search on streetnumber",
60 "name": "street_type",
62 "description": "Case insensitive search on streettype",
68 "description": "Case insensitive search on address",
74 "description": "Case insensitive search on address2",
80 "description": "Case insensitive search on city",
86 "description": "Case insensitive search on state",
90 "name": "postal_code",
92 "description": "Case insensitive search on zipcode",
98 "description": "Case insensitive search on country",
104 "description": "Case insensitive search on email",
110 "description": "Case insensitive search on phone",
116 "description": "Case insensitive search on mobile",
122 "description": "Case insensitive search on fax",
126 "name": "secondary_email",
128 "description": "Case insensitive search on secondary_email",
132 "name": "secondary_phone",
134 "description": "Case insensitive search on secondary_phone",
138 "name": "altaddress_street_number",
140 "description": "Case insensitive search on altaddress_street_number",
144 "name": "altaddress_street_type",
146 "description": "Case insensitive search on altaddress_street_type",
150 "name": "altaddress_address",
152 "description": "Case insensitive search on altaddress_address",
156 "name": "altaddress_address2",
158 "description": "Case insensitive search on altaddress_address2",
162 "name": "altaddress_city",
164 "description": "Case insensitive search on altaddress_city",
168 "name": "altaddress_state",
170 "description": "Case insensitive search on altaddress_state",
174 "name": "altaddress_postal_code",
176 "description": "Case insensitive search on altaddress_postal_code",
180 "name": "altaddress_country",
182 "description": "Case insensitive search on altaddress_country",
186 "name": "altaddress_email",
188 "description": "Case insensitive search on altaddress_email",
192 "name": "altaddress_phone",
194 "description": "Case insensitive search on altaddress_phone",
198 "name": "date_of_birth",
200 "description": "Case insensitive search on date_of_birth",
204 "name": "library_id",
206 "description": "Case insensitive search on library_id",
210 "name": "category_id",
212 "description": "Case insensitive search on category_id",
216 "name": "date_enrolled",
218 "description": "Case insensitive search on date_enrolled",
222 "name": "expiry_date",
224 "description": "Case insensitive search on expiry_date",
228 "name": "incorrect_address",
230 "description": "Search on incorrect_address",
234 "name": "patron_card_lost",
236 "description": "Search on patron_card_lost",
240 "name": "restricted",
242 "description": "Filter search by restricted",
246 "name": "guarantor_id",
248 "description": "Search on guarantor_id",
252 "name": "staff_notes",
254 "description": "Case insensitive search on staff_notes",
258 "name": "relationship_type",
260 "description": "Case insensitive search on relationship_type",
266 "description": "Case insensitive search on gender",
272 "description": "Case insensitive search on userid",
276 "name": "opac_notes",
278 "description": "Case insensitive search on opac_notes",
282 "name": "altaddress_notes",
284 "description": "Case insensitive search on altaddress_notes",
288 "name": "statistics_1",
290 "description": "Case insensitive search on statistics_1",
294 "name": "statistics_2",
296 "description": "Case insensitive search on statistics_2",
300 "name": "autorenew_checkouts",
302 "description": "Search on autorenew_checkouts",
306 "name": "altcontact_firstname",
308 "description": "Case insensitive search on altcontact_firstname",
312 "name": "altcontact_surname",
314 "description": "Case insensitive search on altcontact_surname",
318 "name": "altcontact_address",
320 "description": "Case insensitive search on altcontact_address",
324 "name": "altcontact_address2",
326 "description": "Case insensitive search on altcontact_address2",
330 "name": "altcontact_city",
332 "description": "Case insensitive search on altcontact_city",
336 "name": "altcontact_state",
338 "description": "Case insensitive search on altcontact_state",
342 "name": "altcontact_postal_code",
344 "description": "Case insensitive search on altcontact_postal_code",
348 "name": "altcontact_country",
350 "description": "Case insensitive search on altcontact_country",
354 "name": "altcontact_phone",
356 "description": "Case insensitive search on altcontact_phone",
360 "name": "sms_number",
362 "description": "Case insensitive search on sms_number",
366 "name": "sms_provider_id",
368 "description": "Case insensitive search on sms_provider_id",
374 "description": "Search on privacy",
378 "name": "privacy_guarantor_checkouts",
380 "description": "Search on privacy_guarantor_checkouts",
384 "name": "check_previous_checkout",
386 "description": "Case insensitive search on check_previous_checkout",
390 "name": "updated_on",
392 "description": "Search on updated_on",
398 "description": "Case insensitive search on last_seen",
404 "description": "Case insensitive search on lang",
408 "name": "login_attempts",
410 "description": "Search on login_attempts",
414 "$ref": "../parameters.json#/match"
416 "$ref": "../parameters.json#/order_by"
418 "$ref": "../parameters.json#/page"
420 "$ref": "../parameters.json#/per_page"
422 "$ref": "../parameters.json#/q_param"
424 "$ref": "../parameters.json#/q_body"
426 "$ref": "../parameters.json#/q_header"
430 "description": "A list of patrons",
434 "$ref": "../definitions.json#/patron"
439 "description": "Authentication required",
441 "$ref": "../definitions.json#/error"
445 "description": "Access forbidden",
447 "$ref": "../definitions.json#/error"
451 "description": "Internal server error",
453 "$ref": "../definitions.json#/error"
457 "x-koha-authorization": {
463 "extended_attributes"
467 "x-mojo-to": "Patrons#add",
468 "operationId": "addPatron",
470 "summary": "Add patron",
474 "description": "A JSON object containing information about the new patron",
477 "$ref": "../definitions.json#/patron"
480 "consumes": ["application/json"],
481 "produces": ["application/json"],
484 "description": "A successfully created patron",
487 "$ref": "../definitions.json#/patron"
492 "description": "Bad parameter",
494 "$ref": "../definitions.json#/error"
498 "description": "Authentication required",
500 "$ref": "../definitions.json#/error"
504 "description": "Access forbidden",
506 "$ref": "../definitions.json#/error"
510 "description": "Resource not found",
512 "$ref": "../definitions.json#/error"
516 "description": "Conflict in creating resource",
518 "$ref": "../definitions.json#/error"
522 "description": "Internal server error",
524 "$ref": "../definitions.json#/error"
528 "description": "Under maintenance",
530 "$ref": "../definitions.json#/error"
534 "x-koha-authorization": {
536 "borrowers": "edit_borrowers"
541 "/patrons/{patron_id}": {
543 "x-mojo-to": "Patrons#get",
544 "operationId": "getPatron",
546 "summary": "Get patron",
548 "$ref": "../parameters.json#/patron_id_pp"
555 "description": "A patron",
557 "$ref": "../definitions.json#/patron"
561 "description": "Authentication required",
563 "$ref": "../definitions.json#/error"
567 "description": "Access forbidden",
569 "$ref": "../definitions.json#/error"
573 "description": "Patron not found",
575 "$ref": "../definitions.json#/error"
579 "description": "Internal server error",
581 "$ref": "../definitions.json#/error"
585 "description": "Under maintenance",
587 "$ref": "../definitions.json#/error"
591 "x-koha-authorization": {
593 "borrowers": "edit_borrowers"
597 "extended_attributes"
601 "x-mojo-to": "Patrons#update",
602 "operationId": "updatePatron",
604 "summary": "Update patron",
607 "$ref": "../parameters.json#/patron_id_pp"
612 "description": "A JSON object containing new information about existing patron",
615 "$ref": "../definitions.json#/patron"
619 "consumes": ["application/json"],
620 "produces": ["application/json"],
623 "description": "A successfully updated patron",
626 "$ref": "../definitions.json#/patron"
631 "description": "Bad parameter",
633 "$ref": "../definitions.json#/error"
637 "description": "Access forbidden",
639 "$ref": "../definitions.json#/error"
643 "description": "Resource not found",
645 "$ref": "../definitions.json#/error"
649 "description": "Conflict in updating resource",
651 "$ref": "../definitions.json#/error"
655 "description": "Internal server error",
657 "$ref": "../definitions.json#/error"
661 "x-koha-authorization": {
668 "x-mojo-to": "Patrons#delete",
669 "operationId": "deletePatron",
671 "summary": "Delete patron",
673 "$ref": "../parameters.json#/patron_id_pp"
675 "produces": ["application/json"],
678 "description": "Patron deleted"
681 "description": "Patron deletion failed",
683 "$ref": "../definitions.json#/error"
687 "description": "Authentication required",
689 "$ref": "../definitions.json#/error"
693 "description": "Access forbidden",
695 "$ref": "../definitions.json#/error"
699 "description": "Patron not found",
701 "$ref": "../definitions.json#/error"
705 "x-koha-authorization": {
707 "borrowers": "delete_borrowers"