12 description: Internal hold identifier
16 description: Internal patron identifier
25 description: Internal biblio identifier
29 description: Internal item group identifier
31 - name: pickup_library_id
33 description: Internal library identifier for the pickup library
35 - name: cancellation_date
37 description: The date the hold was cancelled
42 description: Notes related to this hold
46 description: Where in the queue the patron sits
50 description: Found status
54 description: Time of latest update
58 description: Internal item identifier
62 description: Date the item was marked as waiting for the patron
64 - name: expiration_date
66 description: Date the hold expires
68 - name: lowest_priority
70 description: Lowest priority
74 description: Suspended
76 - name: suspended_until
78 description: Suspended until
82 description: Non priority hold
84 - $ref: "../swagger.yaml#/parameters/match"
85 - $ref: "../swagger.yaml#/parameters/order_by"
86 - $ref: "../swagger.yaml#/parameters/page"
87 - $ref: "../swagger.yaml#/parameters/per_page"
88 - $ref: "../swagger.yaml#/parameters/q_param"
89 - $ref: "../swagger.yaml#/parameters/q_body"
90 - $ref: "../swagger.yaml#/parameters/request_id_header"
93 description: By default, current holds are returned, when this is true then
94 old holds are returned as result.
99 description: Embed list sent as a request header
104 - cancellation_requested
107 collectionFormat: csv
112 description: A list of holds
114 $ref: "../swagger.yaml#/definitions/holds"
116 description: Authentication required
118 $ref: "../swagger.yaml#/definitions/error"
120 description: Hold not allowed
122 $ref: "../swagger.yaml#/definitions/error"
124 description: Borrower not found
126 $ref: "../swagger.yaml#/definitions/error"
129 Internal server error. Possible `error_code` attribute values:
131 * `internal_server_error`
133 $ref: "../swagger.yaml#/definitions/error"
135 description: Under maintenance
137 $ref: "../swagger.yaml#/definitions/error"
138 x-koha-authorization:
140 reserveforothers: place_holds
150 description: A JSON object containing informations about the new hold
156 description: Internal patron identifier
159 description: Internal biblio identifier
164 description: Internal item group identifier
169 description: The date the hold was placed
175 description: Internal item identifier
180 description: Internal library identifier for the pickup library
183 description: Hold end date
189 description: Notes related to this hold
194 description: Limit hold on one itemtype (ignored for item-level holds)
199 description: Set this hold as non priority
206 additionalProperties: false
207 - name: x-koha-override
210 description: Overrides list sent as a request header
216 collectionFormat: csv
223 description: Created hold
225 $ref: "../swagger.yaml#/definitions/hold"
227 description: Missing or wrong parameters
229 $ref: "../swagger.yaml#/definitions/error"
231 description: Authentication required
233 $ref: "../swagger.yaml#/definitions/error"
235 description: Hold not allowed
237 $ref: "../swagger.yaml#/definitions/error"
239 description: Borrower not found
241 $ref: "../swagger.yaml#/definitions/error"
244 Internal server error. Possible `error_code` attribute values:
246 * `internal_server_error`
248 $ref: "../swagger.yaml#/definitions/error"
250 description: Under maintenance
252 $ref: "../swagger.yaml#/definitions/error"
253 x-koha-authorization:
255 reserveforothers: "1"
258 x-mojo-to: Holds#edit
259 operationId: editHold
264 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
267 description: A JSON object containing fields to modify
273 description: Position in waiting queue
277 description: Internal library identifier for the pickup library
280 description: Date until which the hold has been suspended
283 additionalProperties: false
290 description: Updated hold
292 $ref: "../swagger.yaml#/definitions/hold"
294 description: Missing or wrong parameters
296 $ref: "../swagger.yaml#/definitions/error"
298 description: Authentication required
300 $ref: "../swagger.yaml#/definitions/error"
302 description: Hold not allowed
304 $ref: "../swagger.yaml#/definitions/error"
306 description: Hold not found
308 $ref: "../swagger.yaml#/definitions/error"
311 Internal server error. Possible `error_code` attribute values:
313 * `internal_server_error`
315 $ref: "../swagger.yaml#/definitions/error"
317 description: Under maintenance
319 $ref: "../swagger.yaml#/definitions/error"
320 x-koha-authorization:
322 reserveforothers: "1"
324 x-mojo-to: Holds#edit
325 operationId: overwriteHold
329 description: This route is being deprecated and will be removed in future releases.
330 Please migrate your project to use PATCH /holds/{hold_id} instead.
332 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
335 description: A JSON object containing fields to modify
341 description: Position in waiting queue
345 description: Internal library identifier for the pickup library
348 description: Date until which the hold has been suspended
351 additionalProperties: false
358 description: Updated hold
360 $ref: "../swagger.yaml#/definitions/hold"
362 description: Missing or wrong parameters
364 $ref: "../swagger.yaml#/definitions/error"
366 description: Authentication required
368 $ref: "../swagger.yaml#/definitions/error"
370 description: Hold not allowed
372 $ref: "../swagger.yaml#/definitions/error"
374 description: Hold not found
376 $ref: "../swagger.yaml#/definitions/error"
379 Internal server error. Possible `error_code` attribute values:
381 * `internal_server_error`
383 $ref: "../swagger.yaml#/definitions/error"
385 description: Under maintenance
387 $ref: "../swagger.yaml#/definitions/error"
388 x-koha-authorization:
390 reserveforothers: "1"
392 x-mojo-to: Holds#delete
393 operationId: deleteHold
398 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
399 - name: x-koha-override
402 description: Overrides list sent as a request header
407 - cancellation-request-flow
408 collectionFormat: csv
413 description: Hold request recorded
415 description: Hold deleted
417 description: Authentication required
419 $ref: "../swagger.yaml#/definitions/error"
421 description: Hold not allowed
423 $ref: "../swagger.yaml#/definitions/error"
425 description: Hold not found
427 $ref: "../swagger.yaml#/definitions/error"
430 Internal server error. Possible `error_code` attribute values:
432 * `internal_server_error`
434 $ref: "../swagger.yaml#/definitions/error"
436 description: Under maintenance
438 $ref: "../swagger.yaml#/definitions/error"
439 x-koha-authorization:
441 reserveforothers: place_holds
442 "/holds/{hold_id}/priority":
444 x-mojo-to: Holds#update_priority
445 operationId: updateHoldPriority
448 summary: Update priority for the hold
450 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
453 description: An integer representing the new priority to be set for the hold
461 description: The new priority value for the hold
465 description: Authentication required
467 $ref: "../swagger.yaml#/definitions/error"
469 description: Access forbidden
471 $ref: "../swagger.yaml#/definitions/error"
473 description: Biblio not found
475 $ref: "../swagger.yaml#/definitions/error"
477 description: Unable to perform action on biblio
479 $ref: "../swagger.yaml#/definitions/error"
482 Internal server error. Possible `error_code` attribute values:
484 * `internal_server_error`
486 $ref: "../swagger.yaml#/definitions/error"
488 description: Under maintenance
490 $ref: "../swagger.yaml#/definitions/error"
491 x-koha-authorization:
493 reserveforothers: modify_holds_priority
494 "/holds/{hold_id}/suspension":
496 x-mojo-to: Holds#suspend
497 operationId: suspendHold
500 summary: Suspend the hold
502 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
505 description: A JSON object containing fields to modify
511 description: Date the hold suspension expires
514 additionalProperties: false
521 description: Hold suspended
523 description: Missing or wrong parameters
525 $ref: "../swagger.yaml#/definitions/error"
527 description: Authentication required
529 $ref: "../swagger.yaml#/definitions/error"
531 description: Hold not allowed
533 $ref: "../swagger.yaml#/definitions/error"
535 description: Hold not found
537 $ref: "../swagger.yaml#/definitions/error"
540 Internal server error. Possible `error_code` attribute values:
542 * `internal_server_error`
544 $ref: "../swagger.yaml#/definitions/error"
546 description: Under maintenance
548 $ref: "../swagger.yaml#/definitions/error"
549 x-koha-authorization:
551 reserveforothers: place_holds
553 x-mojo-to: Holds#resume
554 operationId: resumeHold
559 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
566 description: Hold resumed
568 description: Missing or wrong parameters
570 $ref: "../swagger.yaml#/definitions/error"
572 description: Authentication required
574 $ref: "../swagger.yaml#/definitions/error"
576 description: Hold not allowed
578 $ref: "../swagger.yaml#/definitions/error"
580 description: Hold not found
582 $ref: "../swagger.yaml#/definitions/error"
585 Internal server error. Possible `error_code` attribute values:
587 * `internal_server_error`
589 $ref: "../swagger.yaml#/definitions/error"
591 description: Under maintenance
593 $ref: "../swagger.yaml#/definitions/error"
594 x-koha-authorization:
596 reserveforothers: place_holds
597 "/holds/{hold_id}/pickup_locations":
599 x-mojo-to: Holds#pickup_locations
600 operationId: getHoldPickupLocations
603 summary: Get valid pickup locations for hold
605 - name: x-koha-override
608 description: Overrides list sent as a request header
614 collectionFormat: csv
615 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
616 - $ref: "../swagger.yaml#/parameters/match"
617 - $ref: "../swagger.yaml#/parameters/order_by"
618 - $ref: "../swagger.yaml#/parameters/page"
619 - $ref: "../swagger.yaml#/parameters/per_page"
620 - $ref: "../swagger.yaml#/parameters/q_param"
621 - $ref: "../swagger.yaml#/parameters/q_body"
622 - $ref: "../swagger.yaml#/parameters/request_id_header"
627 description: Hold pickup location
631 $ref: "../swagger.yaml#/definitions/library"
633 description: Missing or wrong parameters
635 $ref: "../swagger.yaml#/definitions/error"
637 description: Authentication required
639 $ref: "../swagger.yaml#/definitions/error"
641 description: Hold pickup location list not allowed
643 $ref: "../swagger.yaml#/definitions/error"
645 description: Hold not found
647 $ref: "../swagger.yaml#/definitions/error"
650 Internal server error. Possible `error_code` attribute values:
652 * `internal_server_error`
654 $ref: "../swagger.yaml#/definitions/error"
656 description: Under maintenance
658 $ref: "../swagger.yaml#/definitions/error"
659 x-koha-authorization:
661 reserveforothers: place_holds
662 "/holds/{hold_id}/pickup_location":
664 x-mojo-to: Holds#update_pickup_location
665 operationId: updateHoldPickupLocation
668 summary: Update pickup location for the hold
669 description: Set a new pickup location for the hold
671 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
674 description: Pickup location
681 description: Internal identifier for the pickup library
682 additionalProperties: false
687 description: The new pickup location value for the hold
693 description: Internal identifier for the pickup library
694 additionalProperties: false
696 description: Missing or wrong parameters
698 $ref: "../swagger.yaml#/definitions/error"
700 description: Authentication required
702 $ref: "../swagger.yaml#/definitions/error"
704 description: Access forbidden
706 $ref: "../swagger.yaml#/definitions/error"
708 description: Hold not found
710 $ref: "../swagger.yaml#/definitions/error"
713 Unable to perform action on hold. Possible `error_code` attribute values:
717 * `hold_in_processing`
719 $ref: "../swagger.yaml#/definitions/error"
722 Internal server error. Possible `error_code` attribute values:
724 * `internal_server_error`
726 description: Under maintenance
728 $ref: "../swagger.yaml#/definitions/error"
729 x-koha-authorization:
731 reserveforothers: place_holds