4 "x-mojo-to": "Holds#list",
5 "operationId": "listHolds",
11 "description": "Internal hold identifier",
17 "description": "Internal patron identifier",
23 "description": "Hold",
30 "description": "Internal biblio identifier",
34 "name": "pickup_library_id",
36 "description": "Internal library identifier for the pickup library",
40 "name": "cancellation_date",
42 "description": "The date the hold was cancelled",
49 "description": "Notes related to this hold",
55 "description": "Where in the queue the patron sits",
61 "description": "Found status",
67 "description": "Time of latest update",
73 "description": "Internal item identifier",
77 "name": "waiting_date",
79 "description": "Date the item was marked as waiting for the patron",
83 "name": "expiration_date",
85 "description": "Date the hold expires",
89 "name": "lowest_priority",
91 "description": "Lowest priority",
97 "description": "Suspended",
101 "name": "suspended_until",
103 "description": "Suspended until",
107 "name": "non_priority",
109 "description": "Non priority hold",
113 "$ref": "../parameters.json#/match"
116 "$ref": "../parameters.json#/order_by"
119 "$ref": "../parameters.json#/page"
122 "$ref": "../parameters.json#/per_page"
125 "$ref": "../parameters.json#/q_param"
128 "$ref": "../parameters.json#/q_body"
131 "$ref": "../parameters.json#/q_header"
134 "produces": ["application/json"],
137 "description": "A list of holds",
139 "$ref": "../definitions.json#/holds"
143 "description": "Authentication required",
145 "$ref": "../definitions.json#/error"
149 "description": "Hold not allowed",
151 "$ref": "../definitions.json#/error"
155 "description": "Borrower not found",
157 "$ref": "../definitions.json#/error"
161 "description": "Internal server error",
163 "$ref": "../definitions.json#/error"
167 "description": "Under maintenance",
169 "$ref": "../definitions.json#/error"
173 "x-koha-authorization": {
175 "borrowers": "edit_borrowers"
180 "x-mojo-to": "Holds#add",
181 "operationId": "addHold",
187 "description": "A JSON object containing informations about the new hold",
193 "description": "Internal patron identifier",
197 "description": "Internal biblio identifier",
198 "type": [ "integer", "null" ]
201 "description": "The date the hold was placed",
202 "type": [ "string", "null" ],
206 "description": "Internal item identifier",
207 "type": [ "integer", "null" ]
209 "pickup_library_id": {
210 "description": "Internal library identifier for the pickup library",
214 "description": "Hold end date",
215 "type": ["string", "null"],
219 "description": "Notes related to this hold",
220 "type": [ "string", "null" ]
223 "description": "Limit hold on one itemtype (ignored for item-level holds)",
224 "type": [ "string", "null" ]
227 "description": "Set this hold as non priority",
228 "type": [ "boolean", "null" ]
231 "required": [ "patron_id", "pickup_library_id" ],
232 "additionalProperties": false
236 "name": "x-koha-override",
237 "description": "Comma-separated list of overrides (valid values: any)",
243 "consumes": ["application/json"],
244 "produces": ["application/json"],
247 "description": "Created hold",
249 "$ref": "../definitions.json#/hold"
253 "description": "Missing or wrong parameters",
255 "$ref": "../definitions.json#/error"
259 "description": "Authentication required",
261 "$ref": "../definitions.json#/error"
265 "description": "Hold not allowed",
267 "$ref": "../definitions.json#/error"
271 "description": "Borrower not found",
273 "$ref": "../definitions.json#/error"
277 "description": "Internal server error",
279 "$ref": "../definitions.json#/error"
283 "description": "Under maintenance",
285 "$ref": "../definitions.json#/error"
289 "x-koha-authorization": {
291 "reserveforothers": "1"
296 "/holds/{hold_id}": {
298 "x-mojo-to": "Holds#edit",
299 "operationId": "editHold",
302 "$ref": "../parameters.json#/hold_id_pp"
306 "description": "A JSON object containing fields to modify",
312 "description": "Position in waiting queue",
316 "pickup_library_id": {
317 "description": "Internal library identifier for the pickup library",
321 "description": "Date until which the hold has been suspended",
323 "format": "date-time"
326 "additionalProperties": false
330 "consumes": ["application/json"],
331 "produces": ["application/json"],
334 "description": "Updated hold",
336 "$ref": "../definitions.json#/hold"
340 "description": "Missing or wrong parameters",
342 "$ref": "../definitions.json#/error"
346 "description": "Authentication required",
348 "$ref": "../definitions.json#/error"
352 "description": "Hold not allowed",
354 "$ref": "../definitions.json#/error"
358 "description": "Hold not found",
360 "$ref": "../definitions.json#/error"
364 "description": "Internal server error",
366 "$ref": "../definitions.json#/error"
370 "description": "Under maintenance",
372 "$ref": "../definitions.json#/error"
376 "x-koha-authorization": {
378 "reserveforothers": "1"
383 "x-mojo-to": "Holds#edit",
384 "operationId": "overwriteHold",
386 "description": "This route is being deprecated and will be removed in future releases. Please migrate your project to use PATCH /holds/{hold_id} instead.",
388 "$ref": "../parameters.json#/hold_id_pp"
392 "description": "A JSON object containing fields to modify",
398 "description": "Position in waiting queue",
402 "pickup_library_id": {
403 "description": "Internal library identifier for the pickup library",
407 "description": "Date until which the hold has been suspended",
409 "format": "date-time"
412 "additionalProperties": false
416 "consumes": ["application/json"],
417 "produces": ["application/json"],
420 "description": "Updated hold",
422 "$ref": "../definitions.json#/hold"
426 "description": "Missing or wrong parameters",
428 "$ref": "../definitions.json#/error"
432 "description": "Authentication required",
434 "$ref": "../definitions.json#/error"
438 "description": "Hold not allowed",
440 "$ref": "../definitions.json#/error"
444 "description": "Hold not found",
446 "$ref": "../definitions.json#/error"
450 "description": "Internal server error",
452 "$ref": "../definitions.json#/error"
456 "description": "Under maintenance",
458 "$ref": "../definitions.json#/error"
462 "x-koha-authorization": {
464 "reserveforothers": "1"
469 "x-mojo-to": "Holds#delete",
470 "operationId": "deleteHold",
473 "$ref": "../parameters.json#/hold_id_pp"
476 "produces": ["application/json"],
479 "description": "Hold deleted"
482 "description": "Authentication required",
484 "$ref": "../definitions.json#/error"
488 "description": "Hold not allowed",
490 "$ref": "../definitions.json#/error"
494 "description": "Hold not found",
496 "$ref": "../definitions.json#/error"
500 "description": "Internal server error",
502 "$ref": "../definitions.json#/error"
506 "description": "Under maintenance",
508 "$ref": "../definitions.json#/error"
512 "x-koha-authorization": {
514 "reserveforothers": "1"
519 "/holds/{hold_id}/priority": {
521 "x-mojo-to": "Holds#update_priority",
522 "operationId": "updateHoldPriority",
529 "$ref": "../parameters.json#/hold_id_pp"
534 "description": "An integer representing the new priority to be set for the hold",
546 "description": "The new priority value for the hold",
552 "description": "Authentication required",
554 "$ref": "../definitions.json#/error"
558 "description": "Access forbidden",
560 "$ref": "../definitions.json#/error"
564 "description": "Biblio not found",
566 "$ref": "../definitions.json#/error"
570 "description": "Unable to perform action on biblio",
572 "$ref": "../definitions.json#/error"
576 "description": "Internal error",
578 "$ref": "../definitions.json#/error"
582 "description": "Under maintenance",
584 "$ref": "../definitions.json#/error"
588 "x-koha-authorization": {
590 "reserveforothers": "modify_holds_priority"
595 "/holds/{hold_id}/suspension": {
597 "x-mojo-to": "Holds#suspend",
598 "operationId": "suspendHold",
601 "$ref": "../parameters.json#/hold_id_pp"
605 "description": "A JSON object containing fields to modify",
611 "description": "Date the hold suspension expires",
616 "additionalProperties": false
620 "consumes": ["application/json"],
621 "produces": ["application/json"],
624 "description": "Hold suspended"
627 "description": "Missing or wrong parameters",
629 "$ref": "../definitions.json#/error"
633 "description": "Authentication required",
635 "$ref": "../definitions.json#/error"
639 "description": "Hold not allowed",
641 "$ref": "../definitions.json#/error"
645 "description": "Hold not found",
647 "$ref": "../definitions.json#/error"
651 "description": "Internal server error",
653 "$ref": "../definitions.json#/error"
657 "description": "Under maintenance",
659 "$ref": "../definitions.json#/error"
663 "x-koha-authorization": {
665 "reserveforothers": "1"
670 "x-mojo-to": "Holds#resume",
671 "operationId": "resumeHold",
675 "$ref": "../parameters.json#/hold_id_pp"
678 "consumes": ["application/json"],
679 "produces": ["application/json"],
682 "description": "Hold resumed"
685 "description": "Missing or wrong parameters",
687 "$ref": "../definitions.json#/error"
691 "description": "Authentication required",
693 "$ref": "../definitions.json#/error"
697 "description": "Hold not allowed",
699 "$ref": "../definitions.json#/error"
703 "description": "Hold not found",
705 "$ref": "../definitions.json#/error"
709 "description": "Internal server error",
711 "$ref": "../definitions.json#/error"
715 "description": "Under maintenance",
717 "$ref": "../definitions.json#/error"
721 "x-koha-authorization": {
723 "reserveforothers": "1"
728 "/holds/{hold_id}/pickup_locations": {
730 "x-mojo-to": "Holds#pickup_locations",
731 "operationId": "getHoldPickupLocations",
735 "name": "x-koha-override",
736 "description": "Comma-separated list of overrides (valid values: any)",
742 "$ref": "../parameters.json#/hold_id_pp"
745 "$ref": "../parameters.json#/match"
748 "$ref": "../parameters.json#/order_by"
751 "$ref": "../parameters.json#/page"
754 "$ref": "../parameters.json#/per_page"
757 "$ref": "../parameters.json#/q_param"
760 "$ref": "../parameters.json#/q_body"
763 "$ref": "../parameters.json#/q_header"
766 "produces": ["application/json"],
769 "description": "Hold pickup location",
773 "$ref": "../definitions.json#/library"
778 "description": "Missing or wrong parameters",
780 "$ref": "../definitions.json#/error"
784 "description": "Authentication required",
786 "$ref": "../definitions.json#/error"
790 "description": "Hold pickup location list not allowed",
792 "$ref": "../definitions.json#/error"
796 "description": "Hold not found",
798 "$ref": "../definitions.json#/error"
802 "description": "Internal server error",
804 "$ref": "../definitions.json#/error"
808 "description": "Under maintenance",
810 "$ref": "../definitions.json#/error"
814 "x-koha-authorization": {
816 "reserveforothers": "place_holds"
821 "/holds/{hold_id}/pickup_location": {
823 "x-mojo-to": "Holds#update_pickup_location",
824 "operationId": "updateHoldPickupLocation",
828 "$ref": "../parameters.json#/hold_id_pp"
833 "description": "Pickup location",
838 "pickup_library_id": {
840 "description": "Internal identifier for the pickup library"
843 "additionalProperties": false
852 "description": "The new pickup location value for the hold",
856 "pickup_library_id": {
858 "description": "Internal identifier for the pickup library"
861 "additionalProperties": false
865 "description": "Missing or wrong parameters",
867 "$ref": "../definitions.json#/error"
871 "description": "Authentication required",
873 "$ref": "../definitions.json#/error"
877 "description": "Access forbidden",
879 "$ref": "../definitions.json#/error"
883 "description": "Hold not found",
885 "$ref": "../definitions.json#/error"
889 "description": "Unable to perform action on hold",
891 "$ref": "../definitions.json#/error"
895 "description": "Internal error",
897 "$ref": "../definitions.json#/error"
901 "description": "Under maintenance",
903 "$ref": "../definitions.json#/error"
907 "x-koha-authorization": {
909 "reserveforothers": "place_holds"