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" ]
221 "name": "x-koha-override",
222 "description": "Comma-separated list of overrides (valid values: any)",
228 "consumes": ["application/json"],
229 "produces": ["application/json"],
232 "description": "Created hold",
234 "$ref": "../definitions.json#/hold"
238 "description": "Missing or wrong parameters",
240 "$ref": "../definitions.json#/error"
244 "description": "Authentication required",
246 "$ref": "../definitions.json#/error"
250 "description": "Hold not allowed",
252 "$ref": "../definitions.json#/error"
256 "description": "Borrower not found",
258 "$ref": "../definitions.json#/error"
262 "description": "Internal server error",
264 "$ref": "../definitions.json#/error"
268 "description": "Under maintenance",
270 "$ref": "../definitions.json#/error"
274 "x-koha-authorization": {
276 "reserveforothers": "1"
281 "/holds/{hold_id}": {
283 "x-mojo-to": "Holds#edit",
284 "operationId": "editHold",
287 "$ref": "../parameters.json#/hold_id_pp"
291 "description": "A JSON object containing fields to modify",
297 "description": "Position in waiting queue",
302 "description": "Pickup location",
306 "description": "Suspend until",
314 "consumes": ["application/json"],
315 "produces": ["application/json"],
318 "description": "Updated hold",
320 "$ref": "../definitions.json#/hold"
324 "description": "Missing or wrong parameters",
326 "$ref": "../definitions.json#/error"
330 "description": "Authentication required",
332 "$ref": "../definitions.json#/error"
336 "description": "Hold not allowed",
338 "$ref": "../definitions.json#/error"
342 "description": "Hold not found",
344 "$ref": "../definitions.json#/error"
348 "description": "Internal server error",
350 "$ref": "../definitions.json#/error"
354 "description": "Under maintenance",
356 "$ref": "../definitions.json#/error"
360 "x-koha-authorization": {
362 "reserveforothers": "1"
367 "x-mojo-to": "Holds#delete",
368 "operationId": "deleteHold",
371 "$ref": "../parameters.json#/hold_id_pp"
374 "produces": ["application/json"],
377 "description": "Hold deleted"
380 "description": "Authentication required",
382 "$ref": "../definitions.json#/error"
386 "description": "Hold not allowed",
388 "$ref": "../definitions.json#/error"
392 "description": "Hold not found",
394 "$ref": "../definitions.json#/error"
398 "description": "Internal server error",
400 "$ref": "../definitions.json#/error"
404 "description": "Under maintenance",
406 "$ref": "../definitions.json#/error"
410 "x-koha-authorization": {
412 "reserveforothers": "1"
417 "/holds/{hold_id}/priority": {
419 "x-mojo-to": "Holds#update_priority",
420 "operationId": "updateHoldPriority",
427 "$ref": "../parameters.json#/hold_id_pp"
432 "description": "An integer representing the new priority to be set for the hold",
444 "description": "The new priority value for the hold",
450 "description": "Authentication required",
452 "$ref": "../definitions.json#/error"
456 "description": "Access forbidden",
458 "$ref": "../definitions.json#/error"
462 "description": "Biblio not found",
464 "$ref": "../definitions.json#/error"
468 "description": "Unable to perform action on biblio",
470 "$ref": "../definitions.json#/error"
474 "description": "Internal error",
476 "$ref": "../definitions.json#/error"
480 "description": "Under maintenance",
482 "$ref": "../definitions.json#/error"
486 "x-koha-authorization": {
488 "reserveforothers": "modify_holds_priority"
493 "/holds/{hold_id}/suspension": {
495 "x-mojo-to": "Holds#suspend",
496 "operationId": "suspendHold",
499 "$ref": "../parameters.json#/hold_id_pp"
503 "description": "A JSON object containing fields to modify",
509 "description": "Date the hold suspension expires",
517 "consumes": ["application/json"],
518 "produces": ["application/json"],
521 "description": "Hold suspended"
524 "description": "Missing or wrong parameters",
526 "$ref": "../definitions.json#/error"
530 "description": "Authentication required",
532 "$ref": "../definitions.json#/error"
536 "description": "Hold not allowed",
538 "$ref": "../definitions.json#/error"
542 "description": "Hold not found",
544 "$ref": "../definitions.json#/error"
548 "description": "Internal server error",
550 "$ref": "../definitions.json#/error"
554 "description": "Under maintenance",
556 "$ref": "../definitions.json#/error"
560 "x-koha-authorization": {
562 "reserveforothers": "1"
567 "x-mojo-to": "Holds#resume",
568 "operationId": "resumeHold",
572 "$ref": "../parameters.json#/hold_id_pp"
575 "consumes": ["application/json"],
576 "produces": ["application/json"],
579 "description": "Hold resumed"
582 "description": "Missing or wrong parameters",
584 "$ref": "../definitions.json#/error"
588 "description": "Authentication required",
590 "$ref": "../definitions.json#/error"
594 "description": "Hold not allowed",
596 "$ref": "../definitions.json#/error"
600 "description": "Hold not found",
602 "$ref": "../definitions.json#/error"
606 "description": "Internal server error",
608 "$ref": "../definitions.json#/error"
612 "description": "Under maintenance",
614 "$ref": "../definitions.json#/error"
618 "x-koha-authorization": {
620 "reserveforothers": "1"
625 "/holds/{hold_id}/pickup_locations": {
627 "x-mojo-to": "Holds#pickup_locations",
628 "operationId": "getHoldPickupLocations",
632 "$ref": "../parameters.json#/hold_id_pp"
635 "$ref": "../parameters.json#/match"
638 "$ref": "../parameters.json#/order_by"
641 "$ref": "../parameters.json#/page"
644 "$ref": "../parameters.json#/per_page"
647 "$ref": "../parameters.json#/q_param"
650 "$ref": "../parameters.json#/q_body"
653 "$ref": "../parameters.json#/q_header"
656 "produces": ["application/json"],
659 "description": "Hold pickup location",
663 "$ref": "../definitions.json#/library"
668 "description": "Missing or wrong parameters",
670 "$ref": "../definitions.json#/error"
674 "description": "Authentication required",
676 "$ref": "../definitions.json#/error"
680 "description": "Hold pickup location list not allowed",
682 "$ref": "../definitions.json#/error"
686 "description": "Hold not found",
688 "$ref": "../definitions.json#/error"
692 "description": "Internal server error",
694 "$ref": "../definitions.json#/error"
698 "description": "Under maintenance",
700 "$ref": "../definitions.json#/error"
704 "x-koha-authorization": {
706 "reserveforothers": "place_holds"
711 "/holds/{hold_id}/pickup_location": {
713 "x-mojo-to": "Holds#update_pickup_location",
714 "operationId": "updateHoldPickupLocation",
718 "$ref": "../parameters.json#/hold_id_pp"
723 "description": "Pickup location",
728 "pickup_library_id": {
730 "description": "Internal identifier for the pickup library"
741 "description": "The new pickup location value for the hold",
745 "pickup_library_id": {
747 "description": "Internal identifier for the pickup library"
753 "description": "Missing or wrong parameters",
755 "$ref": "../definitions.json#/error"
759 "description": "Authentication required",
761 "$ref": "../definitions.json#/error"
765 "description": "Access forbidden",
767 "$ref": "../definitions.json#/error"
771 "description": "Hold not found",
773 "$ref": "../definitions.json#/error"
777 "description": "Unable to perform action on hold",
779 "$ref": "../definitions.json#/error"
783 "description": "Internal error",
785 "$ref": "../definitions.json#/error"
789 "description": "Under maintenance",
791 "$ref": "../definitions.json#/error"
795 "x-koha-authorization": {
797 "reserveforothers": "place_holds"