4 "x-mojo-to": "Holds#list",
5 "operationId": "listHolds",
6 "tags": ["patrons", "holds"],
11 "description": "Internal reserve 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 "produces": ["application/json"],
128 "description": "A list of holds",
130 "$ref": "../definitions.json#/holds"
134 "description": "Authentication required",
136 "$ref": "../definitions.json#/error"
140 "description": "Hold not allowed",
142 "$ref": "../definitions.json#/error"
146 "description": "Borrower not found",
148 "$ref": "../definitions.json#/error"
152 "description": "Internal server error",
154 "$ref": "../definitions.json#/error"
158 "description": "Under maintenance",
160 "$ref": "../definitions.json#/error"
164 "x-koha-authorization": {
166 "borrowers": "edit_borrowers"
171 "x-mojo-to": "Holds#add",
172 "operationId": "addHold",
173 "tags": ["patrons", "holds"],
178 "description": "A JSON object containing informations about the new hold",
184 "description": "Internal patron identifier",
188 "description": "Internal biblio identifier",
189 "type": [ "integer", "null" ]
192 "description": "Internal item identifier",
193 "type": [ "integer", "null" ]
195 "pickup_library_id": {
196 "description": "Internal library identifier for the pickup library",
200 "description": "Hold end date",
201 "type": ["string", "null"],
205 "description": "Notes related to this hold",
206 "type": [ "string", "null" ]
209 "description": "Limit hold on one itemtype (ignored for item-level holds)",
210 "type": [ "string", "null" ]
213 "description": "Set this hold as non priority",
214 "type": [ "boolean", "null" ]
217 "required": [ "patron_id", "pickup_library_id" ],
218 "additionalProperties": false
222 "name": "x-koha-override",
223 "description": "Comma-separated list of overrides (valid values: any)",
229 "consumes": ["application/json"],
230 "produces": ["application/json"],
233 "description": "Created hold",
235 "$ref": "../definitions.json#/hold"
239 "description": "Missing or wrong parameters",
241 "$ref": "../definitions.json#/error"
245 "description": "Authentication required",
247 "$ref": "../definitions.json#/error"
251 "description": "Hold not allowed",
253 "$ref": "../definitions.json#/error"
257 "description": "Borrower not found",
259 "$ref": "../definitions.json#/error"
263 "description": "Internal server error",
265 "$ref": "../definitions.json#/error"
269 "description": "Under maintenance",
271 "$ref": "../definitions.json#/error"
275 "x-koha-authorization": {
277 "reserveforothers": "1"
282 "/holds/{hold_id}": {
284 "x-mojo-to": "Holds#edit",
285 "operationId": "editHold",
288 "$ref": "../parameters.json#/hold_id_pp"
292 "description": "A JSON object containing fields to modify",
298 "description": "Position in waiting queue",
303 "description": "Pickup location",
307 "description": "Suspend until",
312 "additionalProperties": false
316 "consumes": ["application/json"],
317 "produces": ["application/json"],
320 "description": "Updated hold",
322 "$ref": "../definitions.json#/hold"
326 "description": "Missing or wrong parameters",
328 "$ref": "../definitions.json#/error"
332 "description": "Authentication required",
334 "$ref": "../definitions.json#/error"
338 "description": "Hold not allowed",
340 "$ref": "../definitions.json#/error"
344 "description": "Hold not found",
346 "$ref": "../definitions.json#/error"
350 "description": "Internal server error",
352 "$ref": "../definitions.json#/error"
356 "description": "Under maintenance",
358 "$ref": "../definitions.json#/error"
362 "x-koha-authorization": {
364 "reserveforothers": "1"
369 "x-mojo-to": "Holds#delete",
370 "operationId": "deleteHold",
373 "$ref": "../parameters.json#/hold_id_pp"
376 "produces": ["application/json"],
379 "description": "Hold deleted"
382 "description": "Authentication required",
384 "$ref": "../definitions.json#/error"
388 "description": "Hold not allowed",
390 "$ref": "../definitions.json#/error"
394 "description": "Hold not found",
396 "$ref": "../definitions.json#/error"
400 "description": "Internal server error",
402 "$ref": "../definitions.json#/error"
406 "description": "Under maintenance",
408 "$ref": "../definitions.json#/error"
412 "x-koha-authorization": {
414 "reserveforothers": "1"
419 "/holds/{hold_id}/priority": {
421 "x-mojo-to": "Holds#update_priority",
422 "operationId": "updateHoldPriority",
429 "$ref": "../parameters.json#/hold_id_pp"
434 "description": "An integer representing the new priority to be set for the hold",
446 "description": "The new priority value for the hold",
452 "description": "Authentication required",
454 "$ref": "../definitions.json#/error"
458 "description": "Access forbidden",
460 "$ref": "../definitions.json#/error"
464 "description": "Biblio not found",
466 "$ref": "../definitions.json#/error"
470 "description": "Unable to perform action on biblio",
472 "$ref": "../definitions.json#/error"
476 "description": "Internal error",
478 "$ref": "../definitions.json#/error"
482 "description": "Under maintenance",
484 "$ref": "../definitions.json#/error"
488 "x-koha-authorization": {
490 "reserveforothers": "modify_holds_priority"
495 "/holds/{hold_id}/suspension": {
497 "x-mojo-to": "Holds#suspend",
498 "operationId": "suspendHold",
501 "$ref": "../parameters.json#/hold_id_pp"
505 "description": "A JSON object containing fields to modify",
511 "description": "Date the hold suspension expires",
516 "additionalProperties": false
520 "consumes": ["application/json"],
521 "produces": ["application/json"],
524 "description": "Hold suspended"
527 "description": "Missing or wrong parameters",
529 "$ref": "../definitions.json#/error"
533 "description": "Authentication required",
535 "$ref": "../definitions.json#/error"
539 "description": "Hold not allowed",
541 "$ref": "../definitions.json#/error"
545 "description": "Hold not found",
547 "$ref": "../definitions.json#/error"
551 "description": "Internal server error",
553 "$ref": "../definitions.json#/error"
557 "description": "Under maintenance",
559 "$ref": "../definitions.json#/error"
563 "x-koha-authorization": {
565 "reserveforothers": "1"
570 "x-mojo-to": "Holds#resume",
571 "operationId": "resumeHold",
575 "$ref": "../parameters.json#/hold_id_pp"
578 "consumes": ["application/json"],
579 "produces": ["application/json"],
582 "description": "Hold resumed"
585 "description": "Missing or wrong parameters",
587 "$ref": "../definitions.json#/error"
591 "description": "Authentication required",
593 "$ref": "../definitions.json#/error"
597 "description": "Hold not allowed",
599 "$ref": "../definitions.json#/error"
603 "description": "Hold not found",
605 "$ref": "../definitions.json#/error"
609 "description": "Internal server error",
611 "$ref": "../definitions.json#/error"
615 "description": "Under maintenance",
617 "$ref": "../definitions.json#/error"
621 "x-koha-authorization": {
623 "reserveforothers": "1"
628 "/holds/{hold_id}/pickup_locations": {
630 "x-mojo-to": "Holds#pickup_locations",
631 "operationId": "getHoldPickupLocations",
635 "name": "x-koha-override",
636 "description": "Comma-separated list of overrides (valid values: any)",
642 "$ref": "../parameters.json#/hold_id_pp"
645 "$ref": "../parameters.json#/match"
648 "$ref": "../parameters.json#/order_by"
651 "$ref": "../parameters.json#/page"
654 "$ref": "../parameters.json#/per_page"
657 "$ref": "../parameters.json#/q_param"
660 "$ref": "../parameters.json#/q_body"
663 "$ref": "../parameters.json#/q_header"
666 "produces": ["application/json"],
669 "description": "Hold pickup location",
673 "$ref": "../definitions.json#/library"
678 "description": "Missing or wrong parameters",
680 "$ref": "../definitions.json#/error"
684 "description": "Authentication required",
686 "$ref": "../definitions.json#/error"
690 "description": "Hold pickup location list not allowed",
692 "$ref": "../definitions.json#/error"
696 "description": "Hold not found",
698 "$ref": "../definitions.json#/error"
702 "description": "Internal server error",
704 "$ref": "../definitions.json#/error"
708 "description": "Under maintenance",
710 "$ref": "../definitions.json#/error"
714 "x-koha-authorization": {
716 "reserveforothers": "place_holds"
721 "/holds/{hold_id}/pickup_location": {
723 "x-mojo-to": "Holds#update_pickup_location",
724 "operationId": "updateHoldPickupLocation",
728 "$ref": "../parameters.json#/hold_id_pp"
733 "description": "Pickup location",
738 "pickup_library_id": {
740 "description": "Internal identifier for the pickup library"
743 "additionalProperties": false
752 "description": "The new pickup location value for the hold",
756 "pickup_library_id": {
758 "description": "Internal identifier for the pickup library"
761 "additionalProperties": false
765 "description": "Missing or wrong parameters",
767 "$ref": "../definitions.json#/error"
771 "description": "Authentication required",
773 "$ref": "../definitions.json#/error"
777 "description": "Access forbidden",
779 "$ref": "../definitions.json#/error"
783 "description": "Hold not found",
785 "$ref": "../definitions.json#/error"
789 "description": "Unable to perform action on hold",
791 "$ref": "../definitions.json#/error"
795 "description": "Internal error",
797 "$ref": "../definitions.json#/error"
801 "description": "Under maintenance",
803 "$ref": "../definitions.json#/error"
807 "x-koha-authorization": {
809 "reserveforothers": "place_holds"