12 description: Internal hold identifier
16 description: Internal patron identifier
25 description: Internal biblio identifier
27 - name: pickup_library_id
29 description: Internal library identifier for the pickup library
31 - name: cancellation_date
33 description: The date the hold was cancelled
38 description: Notes related to this hold
42 description: Where in the queue the patron sits
46 description: Found status
50 description: Time of latest update
54 description: Internal item identifier
58 description: Date the item was marked as waiting for the patron
60 - name: expiration_date
62 description: Date the hold expires
64 - name: lowest_priority
66 description: Lowest priority
70 description: Suspended
72 - name: suspended_until
74 description: Suspended until
78 description: Non priority hold
80 - $ref: "../swagger.yaml#/parameters/match"
81 - $ref: "../swagger.yaml#/parameters/order_by"
82 - $ref: "../swagger.yaml#/parameters/page"
83 - $ref: "../swagger.yaml#/parameters/per_page"
84 - $ref: "../swagger.yaml#/parameters/q_param"
85 - $ref: "../swagger.yaml#/parameters/q_body"
86 - $ref: "../swagger.yaml#/parameters/q_header"
87 - $ref: "../swagger.yaml#/parameters/request_id_header"
92 description: A list of holds
94 $ref: "../swagger.yaml#/definitions/holds"
96 description: Authentication required
98 $ref: "../swagger.yaml#/definitions/error"
100 description: Hold not allowed
102 $ref: "../swagger.yaml#/definitions/error"
104 description: Borrower not found
106 $ref: "../swagger.yaml#/definitions/error"
109 Internal server error. Possible `error_code` attribute values:
111 * `internal_server_error`
113 $ref: "../swagger.yaml#/definitions/error"
115 description: Under maintenance
117 $ref: "../swagger.yaml#/definitions/error"
118 x-koha-authorization:
120 borrowers: edit_borrowers
130 description: A JSON object containing informations about the new hold
136 description: Internal patron identifier
139 description: Internal biblio identifier
144 description: The date the hold was placed
150 description: Internal item identifier
155 description: Internal library identifier for the pickup library
158 description: Hold end date
164 description: Notes related to this hold
169 description: Limit hold on one itemtype (ignored for item-level holds)
174 description: Set this hold as non priority
181 additionalProperties: false
182 - name: x-koha-override
185 description: Overrides list sent as a request header
191 collectionFormat: csv
198 description: Created hold
200 $ref: "../swagger.yaml#/definitions/hold"
202 description: Missing or wrong parameters
204 $ref: "../swagger.yaml#/definitions/error"
206 description: Authentication required
208 $ref: "../swagger.yaml#/definitions/error"
210 description: Hold not allowed
212 $ref: "../swagger.yaml#/definitions/error"
214 description: Borrower not found
216 $ref: "../swagger.yaml#/definitions/error"
219 Internal server error. Possible `error_code` attribute values:
221 * `internal_server_error`
223 $ref: "../swagger.yaml#/definitions/error"
225 description: Under maintenance
227 $ref: "../swagger.yaml#/definitions/error"
228 x-koha-authorization:
230 reserveforothers: "1"
233 x-mojo-to: Holds#edit
234 operationId: editHold
239 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
242 description: A JSON object containing fields to modify
248 description: Position in waiting queue
252 description: Internal library identifier for the pickup library
255 description: Date until which the hold has been suspended
258 additionalProperties: false
265 description: Updated hold
267 $ref: "../swagger.yaml#/definitions/hold"
269 description: Missing or wrong parameters
271 $ref: "../swagger.yaml#/definitions/error"
273 description: Authentication required
275 $ref: "../swagger.yaml#/definitions/error"
277 description: Hold not allowed
279 $ref: "../swagger.yaml#/definitions/error"
281 description: Hold not found
283 $ref: "../swagger.yaml#/definitions/error"
286 Internal server error. Possible `error_code` attribute values:
288 * `internal_server_error`
290 $ref: "../swagger.yaml#/definitions/error"
292 description: Under maintenance
294 $ref: "../swagger.yaml#/definitions/error"
295 x-koha-authorization:
297 reserveforothers: "1"
299 x-mojo-to: Holds#edit
300 operationId: overwriteHold
304 description: This route is being deprecated and will be removed in future releases.
305 Please migrate your project to use PATCH /holds/{hold_id} instead.
307 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
310 description: A JSON object containing fields to modify
316 description: Position in waiting queue
320 description: Internal library identifier for the pickup library
323 description: Date until which the hold has been suspended
326 additionalProperties: false
333 description: Updated hold
335 $ref: "../swagger.yaml#/definitions/hold"
337 description: Missing or wrong parameters
339 $ref: "../swagger.yaml#/definitions/error"
341 description: Authentication required
343 $ref: "../swagger.yaml#/definitions/error"
345 description: Hold not allowed
347 $ref: "../swagger.yaml#/definitions/error"
349 description: Hold not found
351 $ref: "../swagger.yaml#/definitions/error"
354 Internal server error. Possible `error_code` attribute values:
356 * `internal_server_error`
358 $ref: "../swagger.yaml#/definitions/error"
360 description: Under maintenance
362 $ref: "../swagger.yaml#/definitions/error"
363 x-koha-authorization:
365 reserveforothers: "1"
367 x-mojo-to: Holds#delete
368 operationId: deleteHold
373 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
378 description: Hold deleted
380 description: Authentication required
382 $ref: "../swagger.yaml#/definitions/error"
384 description: Hold not allowed
386 $ref: "../swagger.yaml#/definitions/error"
388 description: Hold not found
390 $ref: "../swagger.yaml#/definitions/error"
393 Internal server error. Possible `error_code` attribute values:
395 * `internal_server_error`
397 $ref: "../swagger.yaml#/definitions/error"
399 description: Under maintenance
401 $ref: "../swagger.yaml#/definitions/error"
402 x-koha-authorization:
404 reserveforothers: place_holds
405 "/holds/{hold_id}/priority":
407 x-mojo-to: Holds#update_priority
408 operationId: updateHoldPriority
411 summary: Update priority for the hold
413 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
416 description: An integer representing the new priority to be set for the hold
424 description: The new priority value for the hold
428 description: Authentication required
430 $ref: "../swagger.yaml#/definitions/error"
432 description: Access forbidden
434 $ref: "../swagger.yaml#/definitions/error"
436 description: Biblio not found
438 $ref: "../swagger.yaml#/definitions/error"
440 description: Unable to perform action on biblio
442 $ref: "../swagger.yaml#/definitions/error"
445 Internal server error. Possible `error_code` attribute values:
447 * `internal_server_error`
449 $ref: "../swagger.yaml#/definitions/error"
451 description: Under maintenance
453 $ref: "../swagger.yaml#/definitions/error"
454 x-koha-authorization:
456 reserveforothers: modify_holds_priority
457 "/holds/{hold_id}/suspension":
459 x-mojo-to: Holds#suspend
460 operationId: suspendHold
463 summary: Suspend the hold
465 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
468 description: A JSON object containing fields to modify
474 description: Date the hold suspension expires
477 additionalProperties: false
484 description: Hold suspended
486 description: Missing or wrong parameters
488 $ref: "../swagger.yaml#/definitions/error"
490 description: Authentication required
492 $ref: "../swagger.yaml#/definitions/error"
494 description: Hold not allowed
496 $ref: "../swagger.yaml#/definitions/error"
498 description: Hold not found
500 $ref: "../swagger.yaml#/definitions/error"
503 Internal server error. Possible `error_code` attribute values:
505 * `internal_server_error`
507 $ref: "../swagger.yaml#/definitions/error"
509 description: Under maintenance
511 $ref: "../swagger.yaml#/definitions/error"
512 x-koha-authorization:
514 reserveforothers: place_holds
516 x-mojo-to: Holds#resume
517 operationId: resumeHold
522 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
529 description: Hold resumed
531 description: Missing or wrong parameters
533 $ref: "../swagger.yaml#/definitions/error"
535 description: Authentication required
537 $ref: "../swagger.yaml#/definitions/error"
539 description: Hold not allowed
541 $ref: "../swagger.yaml#/definitions/error"
543 description: Hold not found
545 $ref: "../swagger.yaml#/definitions/error"
548 Internal server error. Possible `error_code` attribute values:
550 * `internal_server_error`
552 $ref: "../swagger.yaml#/definitions/error"
554 description: Under maintenance
556 $ref: "../swagger.yaml#/definitions/error"
557 x-koha-authorization:
559 reserveforothers: place_holds
560 "/holds/{hold_id}/pickup_locations":
562 x-mojo-to: Holds#pickup_locations
563 operationId: getHoldPickupLocations
566 summary: Get valid pickup locations for hold
568 - name: x-koha-override
571 description: Overrides list sent as a request header
577 collectionFormat: csv
578 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
579 - $ref: "../swagger.yaml#/parameters/match"
580 - $ref: "../swagger.yaml#/parameters/order_by"
581 - $ref: "../swagger.yaml#/parameters/page"
582 - $ref: "../swagger.yaml#/parameters/per_page"
583 - $ref: "../swagger.yaml#/parameters/q_param"
584 - $ref: "../swagger.yaml#/parameters/q_body"
585 - $ref: "../swagger.yaml#/parameters/q_header"
586 - $ref: "../swagger.yaml#/parameters/request_id_header"
591 description: Hold pickup location
595 $ref: "../swagger.yaml#/definitions/library"
597 description: Missing or wrong parameters
599 $ref: "../swagger.yaml#/definitions/error"
601 description: Authentication required
603 $ref: "../swagger.yaml#/definitions/error"
605 description: Hold pickup location list not allowed
607 $ref: "../swagger.yaml#/definitions/error"
609 description: Hold not found
611 $ref: "../swagger.yaml#/definitions/error"
614 Internal server error. Possible `error_code` attribute values:
616 * `internal_server_error`
618 $ref: "../swagger.yaml#/definitions/error"
620 description: Under maintenance
622 $ref: "../swagger.yaml#/definitions/error"
623 x-koha-authorization:
625 reserveforothers: place_holds
626 "/holds/{hold_id}/pickup_location":
628 x-mojo-to: Holds#update_pickup_location
629 operationId: updateHoldPickupLocation
632 summary: Update pickup location for the hold
633 description: Set a new pickup location for the hold
635 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
638 description: Pickup location
645 description: Internal identifier for the pickup library
646 additionalProperties: false
651 description: The new pickup location value for the hold
657 description: Internal identifier for the pickup library
658 additionalProperties: false
660 description: Missing or wrong parameters
662 $ref: "../swagger.yaml#/definitions/error"
664 description: Authentication required
666 $ref: "../swagger.yaml#/definitions/error"
668 description: Access forbidden
670 $ref: "../swagger.yaml#/definitions/error"
672 description: Hold not found
674 $ref: "../swagger.yaml#/definitions/error"
676 description: Unable to perform action on hold
678 $ref: "../swagger.yaml#/definitions/error"
680 description: Internal error
682 $ref: "../swagger.yaml#/definitions/error"
684 description: Under maintenance
686 $ref: "../swagger.yaml#/definitions/error"
687 x-koha-authorization:
689 reserveforothers: place_holds