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"],
177 "description": "A JSON object containing informations about the new hold",
183 "description": "Internal patron identifier",
187 "description": "Internal biblio identifier",
188 "type": [ "integer", "null" ]
191 "description": "Internal item identifier",
192 "type": [ "integer", "null" ]
194 "pickup_library_id": {
195 "description": "Internal library identifier for the pickup library",
199 "description": "Hold end date",
200 "type": ["string", "null"],
204 "description": "Notes related to this hold",
205 "type": [ "string", "null" ]
208 "description": "Limit hold on one itemtype (ignored for item-level holds)",
209 "type": [ "string", "null" ]
212 "description": "Set this hold as non priority",
213 "type": [ "boolean", "null" ]
216 "required": [ "patron_id", "pickup_library_id" ]
220 "consumes": ["application/json"],
221 "produces": ["application/json"],
224 "description": "Created hold",
226 "$ref": "../definitions.json#/hold"
230 "description": "Missing or wrong parameters",
232 "$ref": "../definitions.json#/error"
236 "description": "Authentication required",
238 "$ref": "../definitions.json#/error"
242 "description": "Hold not allowed",
244 "$ref": "../definitions.json#/error"
248 "description": "Borrower not found",
250 "$ref": "../definitions.json#/error"
254 "description": "Internal server error",
256 "$ref": "../definitions.json#/error"
260 "description": "Under maintenance",
262 "$ref": "../definitions.json#/error"
266 "x-koha-authorization": {
268 "reserveforothers": "1"
273 "/holds/{hold_id}": {
275 "x-mojo-to": "Holds#edit",
276 "operationId": "editHold",
279 "$ref": "../parameters.json#/hold_id_pp"
283 "description": "A JSON object containing fields to modify",
289 "description": "Position in waiting queue",
294 "description": "Pickup location",
298 "description": "Suspend until",
306 "consumes": ["application/json"],
307 "produces": ["application/json"],
310 "description": "Updated hold",
312 "$ref": "../definitions.json#/hold"
316 "description": "Missing or wrong parameters",
318 "$ref": "../definitions.json#/error"
322 "description": "Authentication required",
324 "$ref": "../definitions.json#/error"
328 "description": "Hold not allowed",
330 "$ref": "../definitions.json#/error"
334 "description": "Hold not found",
336 "$ref": "../definitions.json#/error"
340 "description": "Internal server error",
342 "$ref": "../definitions.json#/error"
346 "description": "Under maintenance",
348 "$ref": "../definitions.json#/error"
352 "x-koha-authorization": {
354 "reserveforothers": "1"
359 "x-mojo-to": "Holds#delete",
360 "operationId": "deleteHold",
363 "$ref": "../parameters.json#/hold_id_pp"
366 "produces": ["application/json"],
369 "description": "Hold deleted"
372 "description": "Authentication required",
374 "$ref": "../definitions.json#/error"
378 "description": "Hold not allowed",
380 "$ref": "../definitions.json#/error"
384 "description": "Hold not found",
386 "$ref": "../definitions.json#/error"
390 "description": "Internal server error",
392 "$ref": "../definitions.json#/error"
396 "description": "Under maintenance",
398 "$ref": "../definitions.json#/error"
402 "x-koha-authorization": {
404 "reserveforothers": "1"
409 "/holds/{hold_id}/priority": {
411 "x-mojo-to": "Holds#update_priority",
412 "operationId": "updateHoldPriority",
419 "$ref": "../parameters.json#/hold_id_pp"
424 "description": "An integer representing the new priority to be set for the hold",
436 "description": "The new priority value for the hold",
442 "description": "Authentication required",
444 "$ref": "../definitions.json#/error"
448 "description": "Access forbidden",
450 "$ref": "../definitions.json#/error"
454 "description": "Biblio not found",
456 "$ref": "../definitions.json#/error"
460 "description": "Unable to perform action on biblio",
462 "$ref": "../definitions.json#/error"
466 "description": "Internal error",
468 "$ref": "../definitions.json#/error"
472 "description": "Under maintenance",
474 "$ref": "../definitions.json#/error"
478 "x-koha-authorization": {
480 "reserveforothers": "modify_holds_priority"
485 "/holds/{hold_id}/suspension": {
487 "x-mojo-to": "Holds#suspend",
488 "operationId": "suspendHold",
491 "$ref": "../parameters.json#/hold_id_pp"
495 "description": "A JSON object containing fields to modify",
501 "description": "Date the hold suspension expires",
509 "consumes": ["application/json"],
510 "produces": ["application/json"],
513 "description": "Hold suspended"
516 "description": "Missing or wrong parameters",
518 "$ref": "../definitions.json#/error"
522 "description": "Authentication required",
524 "$ref": "../definitions.json#/error"
528 "description": "Hold not allowed",
530 "$ref": "../definitions.json#/error"
534 "description": "Hold not found",
536 "$ref": "../definitions.json#/error"
540 "description": "Internal server error",
542 "$ref": "../definitions.json#/error"
546 "description": "Under maintenance",
548 "$ref": "../definitions.json#/error"
552 "x-koha-authorization": {
554 "reserveforothers": "1"
559 "x-mojo-to": "Holds#resume",
560 "operationId": "resumeHold",
564 "$ref": "../parameters.json#/hold_id_pp"
567 "consumes": ["application/json"],
568 "produces": ["application/json"],
571 "description": "Hold resumed"
574 "description": "Missing or wrong parameters",
576 "$ref": "../definitions.json#/error"
580 "description": "Authentication required",
582 "$ref": "../definitions.json#/error"
586 "description": "Hold not allowed",
588 "$ref": "../definitions.json#/error"
592 "description": "Hold not found",
594 "$ref": "../definitions.json#/error"
598 "description": "Internal server error",
600 "$ref": "../definitions.json#/error"
604 "description": "Under maintenance",
606 "$ref": "../definitions.json#/error"
610 "x-koha-authorization": {
612 "reserveforothers": "1"
617 "/holds/{hold_id}/pickup_locations": {
619 "x-mojo-to": "Holds#pickup_locations",
620 "operationId": "getHoldPickupLocations",
623 "$ref": "../parameters.json#/hold_id_pp"
625 "produces": ["application/json"],
628 "description": "Hold pickup location"
631 "description": "Missing or wrong parameters",
633 "$ref": "../definitions.json#/error"
637 "description": "Authentication required",
639 "$ref": "../definitions.json#/error"
643 "description": "Hold pickup location list not allowed",
645 "$ref": "../definitions.json#/error"
649 "description": "Hold not found",
651 "$ref": "../definitions.json#/error"
655 "description": "Internal server error",
657 "$ref": "../definitions.json#/error"
661 "description": "Under maintenance",
663 "$ref": "../definitions.json#/error"
667 "x-koha-authorization": {
669 "reserveforothers": "1"