Lines 77-119
Link Here
|
77 |
in: query |
77 |
in: query |
78 |
description: Non priority hold |
78 |
description: Non priority hold |
79 |
type: boolean |
79 |
type: boolean |
80 |
- $ref: ../parameters.yaml#/match |
80 |
- $ref: "../swagger.yaml#/parameters/match" |
81 |
- $ref: ../parameters.yaml#/order_by |
81 |
- $ref: "../swagger.yaml#/parameters/order_by" |
82 |
- $ref: ../parameters.yaml#/page |
82 |
- $ref: "../swagger.yaml#/parameters/page" |
83 |
- $ref: ../parameters.yaml#/per_page |
83 |
- $ref: "../swagger.yaml#/parameters/per_page" |
84 |
- $ref: ../parameters.yaml#/q_param |
84 |
- $ref: "../swagger.yaml#/parameters/q_param" |
85 |
- $ref: ../parameters.yaml#/q_body |
85 |
- $ref: "../swagger.yaml#/parameters/q_body" |
86 |
- $ref: ../parameters.yaml#/q_header |
86 |
- $ref: "../swagger.yaml#/parameters/q_header" |
87 |
produces: |
87 |
produces: |
88 |
- application/json |
88 |
- application/json |
89 |
responses: |
89 |
responses: |
90 |
"200": |
90 |
"200": |
91 |
description: A list of holds |
91 |
description: A list of holds |
92 |
schema: |
92 |
schema: |
93 |
$ref: ../definitions.yaml#/holds |
93 |
$ref: "../swagger.yaml#/definitions/holds" |
94 |
"401": |
94 |
"401": |
95 |
description: Authentication required |
95 |
description: Authentication required |
96 |
schema: |
96 |
schema: |
97 |
$ref: ../definitions.yaml#/error |
97 |
$ref: "../swagger.yaml#/definitions/error" |
98 |
"403": |
98 |
"403": |
99 |
description: Hold not allowed |
99 |
description: Hold not allowed |
100 |
schema: |
100 |
schema: |
101 |
$ref: ../definitions.yaml#/error |
101 |
$ref: "../swagger.yaml#/definitions/error" |
102 |
"404": |
102 |
"404": |
103 |
description: Borrower not found |
103 |
description: Borrower not found |
104 |
schema: |
104 |
schema: |
105 |
$ref: ../definitions.yaml#/error |
105 |
$ref: "../swagger.yaml#/definitions/error" |
106 |
"500": |
106 |
"500": |
107 |
description: | |
107 |
description: | |
108 |
Internal server error. Possible `error_code` attribute values: |
108 |
Internal server error. Possible `error_code` attribute values: |
109 |
|
109 |
|
110 |
* `internal_server_error` |
110 |
* `internal_server_error` |
111 |
schema: |
111 |
schema: |
112 |
$ref: ../definitions.yaml#/error |
112 |
$ref: "../swagger.yaml#/definitions/error" |
113 |
"503": |
113 |
"503": |
114 |
description: Under maintenance |
114 |
description: Under maintenance |
115 |
schema: |
115 |
schema: |
116 |
$ref: ../definitions.yaml#/error |
116 |
$ref: "../swagger.yaml#/definitions/error" |
117 |
x-koha-authorization: |
117 |
x-koha-authorization: |
118 |
permissions: |
118 |
permissions: |
119 |
borrowers: edit_borrowers |
119 |
borrowers: edit_borrowers |
Lines 191-224
Link Here
|
191 |
"201": |
191 |
"201": |
192 |
description: Created hold |
192 |
description: Created hold |
193 |
schema: |
193 |
schema: |
194 |
$ref: ../definitions.yaml#/hold |
194 |
$ref: "../swagger.yaml#/definitions/hold" |
195 |
"400": |
195 |
"400": |
196 |
description: Missing or wrong parameters |
196 |
description: Missing or wrong parameters |
197 |
schema: |
197 |
schema: |
198 |
$ref: ../definitions.yaml#/error |
198 |
$ref: "../swagger.yaml#/definitions/error" |
199 |
"401": |
199 |
"401": |
200 |
description: Authentication required |
200 |
description: Authentication required |
201 |
schema: |
201 |
schema: |
202 |
$ref: ../definitions.yaml#/error |
202 |
$ref: "../swagger.yaml#/definitions/error" |
203 |
"403": |
203 |
"403": |
204 |
description: Hold not allowed |
204 |
description: Hold not allowed |
205 |
schema: |
205 |
schema: |
206 |
$ref: ../definitions.yaml#/error |
206 |
$ref: "../swagger.yaml#/definitions/error" |
207 |
"404": |
207 |
"404": |
208 |
description: Borrower not found |
208 |
description: Borrower not found |
209 |
schema: |
209 |
schema: |
210 |
$ref: ../definitions.yaml#/error |
210 |
$ref: "../swagger.yaml#/definitions/error" |
211 |
"500": |
211 |
"500": |
212 |
description: | |
212 |
description: | |
213 |
Internal server error. Possible `error_code` attribute values: |
213 |
Internal server error. Possible `error_code` attribute values: |
214 |
|
214 |
|
215 |
* `internal_server_error` |
215 |
* `internal_server_error` |
216 |
schema: |
216 |
schema: |
217 |
$ref: ../definitions.yaml#/error |
217 |
$ref: "../swagger.yaml#/definitions/error" |
218 |
"503": |
218 |
"503": |
219 |
description: Under maintenance |
219 |
description: Under maintenance |
220 |
schema: |
220 |
schema: |
221 |
$ref: ../definitions.yaml#/error |
221 |
$ref: "../swagger.yaml#/definitions/error" |
222 |
x-koha-authorization: |
222 |
x-koha-authorization: |
223 |
permissions: |
223 |
permissions: |
224 |
reserveforothers: "1" |
224 |
reserveforothers: "1" |
Lines 230-236
Link Here
|
230 |
- holds |
230 |
- holds |
231 |
summary: Update hold |
231 |
summary: Update hold |
232 |
parameters: |
232 |
parameters: |
233 |
- $ref: ../parameters.yaml#/hold_id_pp |
233 |
- $ref: "../swagger.yaml#/parameters/hold_id_pp" |
234 |
- name: body |
234 |
- name: body |
235 |
in: body |
235 |
in: body |
236 |
description: A JSON object containing fields to modify |
236 |
description: A JSON object containing fields to modify |
Lines 258-291
Link Here
|
258 |
"200": |
258 |
"200": |
259 |
description: Updated hold |
259 |
description: Updated hold |
260 |
schema: |
260 |
schema: |
261 |
$ref: ../definitions.yaml#/hold |
261 |
$ref: "../swagger.yaml#/definitions/hold" |
262 |
"400": |
262 |
"400": |
263 |
description: Missing or wrong parameters |
263 |
description: Missing or wrong parameters |
264 |
schema: |
264 |
schema: |
265 |
$ref: ../definitions.yaml#/error |
265 |
$ref: "../swagger.yaml#/definitions/error" |
266 |
"401": |
266 |
"401": |
267 |
description: Authentication required |
267 |
description: Authentication required |
268 |
schema: |
268 |
schema: |
269 |
$ref: ../definitions.yaml#/error |
269 |
$ref: "../swagger.yaml#/definitions/error" |
270 |
"403": |
270 |
"403": |
271 |
description: Hold not allowed |
271 |
description: Hold not allowed |
272 |
schema: |
272 |
schema: |
273 |
$ref: ../definitions.yaml#/error |
273 |
$ref: "../swagger.yaml#/definitions/error" |
274 |
"404": |
274 |
"404": |
275 |
description: Hold not found |
275 |
description: Hold not found |
276 |
schema: |
276 |
schema: |
277 |
$ref: ../definitions.yaml#/error |
277 |
$ref: "../swagger.yaml#/definitions/error" |
278 |
"500": |
278 |
"500": |
279 |
description: | |
279 |
description: | |
280 |
Internal server error. Possible `error_code` attribute values: |
280 |
Internal server error. Possible `error_code` attribute values: |
281 |
|
281 |
|
282 |
* `internal_server_error` |
282 |
* `internal_server_error` |
283 |
schema: |
283 |
schema: |
284 |
$ref: ../definitions.yaml#/error |
284 |
$ref: "../swagger.yaml#/definitions/error" |
285 |
"503": |
285 |
"503": |
286 |
description: Under maintenance |
286 |
description: Under maintenance |
287 |
schema: |
287 |
schema: |
288 |
$ref: ../definitions.yaml#/error |
288 |
$ref: "../swagger.yaml#/definitions/error" |
289 |
x-koha-authorization: |
289 |
x-koha-authorization: |
290 |
permissions: |
290 |
permissions: |
291 |
reserveforothers: "1" |
291 |
reserveforothers: "1" |
Lines 298-304
Link Here
|
298 |
description: This route is being deprecated and will be removed in future releases. |
298 |
description: This route is being deprecated and will be removed in future releases. |
299 |
Please migrate your project to use PATCH /holds/{hold_id} instead. |
299 |
Please migrate your project to use PATCH /holds/{hold_id} instead. |
300 |
parameters: |
300 |
parameters: |
301 |
- $ref: ../parameters.yaml#/hold_id_pp |
301 |
- $ref: "../swagger.yaml#/parameters/hold_id_pp" |
302 |
- name: body |
302 |
- name: body |
303 |
in: body |
303 |
in: body |
304 |
description: A JSON object containing fields to modify |
304 |
description: A JSON object containing fields to modify |
Lines 326-359
Link Here
|
326 |
"200": |
326 |
"200": |
327 |
description: Updated hold |
327 |
description: Updated hold |
328 |
schema: |
328 |
schema: |
329 |
$ref: ../definitions.yaml#/hold |
329 |
$ref: "../swagger.yaml#/definitions/hold" |
330 |
"400": |
330 |
"400": |
331 |
description: Missing or wrong parameters |
331 |
description: Missing or wrong parameters |
332 |
schema: |
332 |
schema: |
333 |
$ref: ../definitions.yaml#/error |
333 |
$ref: "../swagger.yaml#/definitions/error" |
334 |
"401": |
334 |
"401": |
335 |
description: Authentication required |
335 |
description: Authentication required |
336 |
schema: |
336 |
schema: |
337 |
$ref: ../definitions.yaml#/error |
337 |
$ref: "../swagger.yaml#/definitions/error" |
338 |
"403": |
338 |
"403": |
339 |
description: Hold not allowed |
339 |
description: Hold not allowed |
340 |
schema: |
340 |
schema: |
341 |
$ref: ../definitions.yaml#/error |
341 |
$ref: "../swagger.yaml#/definitions/error" |
342 |
"404": |
342 |
"404": |
343 |
description: Hold not found |
343 |
description: Hold not found |
344 |
schema: |
344 |
schema: |
345 |
$ref: ../definitions.yaml#/error |
345 |
$ref: "../swagger.yaml#/definitions/error" |
346 |
"500": |
346 |
"500": |
347 |
description: | |
347 |
description: | |
348 |
Internal server error. Possible `error_code` attribute values: |
348 |
Internal server error. Possible `error_code` attribute values: |
349 |
|
349 |
|
350 |
* `internal_server_error` |
350 |
* `internal_server_error` |
351 |
schema: |
351 |
schema: |
352 |
$ref: ../definitions.yaml#/error |
352 |
$ref: "../swagger.yaml#/definitions/error" |
353 |
"503": |
353 |
"503": |
354 |
description: Under maintenance |
354 |
description: Under maintenance |
355 |
schema: |
355 |
schema: |
356 |
$ref: ../definitions.yaml#/error |
356 |
$ref: "../swagger.yaml#/definitions/error" |
357 |
x-koha-authorization: |
357 |
x-koha-authorization: |
358 |
permissions: |
358 |
permissions: |
359 |
reserveforothers: "1" |
359 |
reserveforothers: "1" |
Lines 364-370
Link Here
|
364 |
- holds |
364 |
- holds |
365 |
summary: Cancel hold |
365 |
summary: Cancel hold |
366 |
parameters: |
366 |
parameters: |
367 |
- $ref: ../parameters.yaml#/hold_id_pp |
367 |
- $ref: "../swagger.yaml#/parameters/hold_id_pp" |
368 |
produces: |
368 |
produces: |
369 |
- application/json |
369 |
- application/json |
370 |
responses: |
370 |
responses: |
Lines 373-398
Link Here
|
373 |
"401": |
373 |
"401": |
374 |
description: Authentication required |
374 |
description: Authentication required |
375 |
schema: |
375 |
schema: |
376 |
$ref: ../definitions.yaml#/error |
376 |
$ref: "../swagger.yaml#/definitions/error" |
377 |
"403": |
377 |
"403": |
378 |
description: Hold not allowed |
378 |
description: Hold not allowed |
379 |
schema: |
379 |
schema: |
380 |
$ref: ../definitions.yaml#/error |
380 |
$ref: "../swagger.yaml#/definitions/error" |
381 |
"404": |
381 |
"404": |
382 |
description: Hold not found |
382 |
description: Hold not found |
383 |
schema: |
383 |
schema: |
384 |
$ref: ../definitions.yaml#/error |
384 |
$ref: "../swagger.yaml#/definitions/error" |
385 |
"500": |
385 |
"500": |
386 |
description: | |
386 |
description: | |
387 |
Internal server error. Possible `error_code` attribute values: |
387 |
Internal server error. Possible `error_code` attribute values: |
388 |
|
388 |
|
389 |
* `internal_server_error` |
389 |
* `internal_server_error` |
390 |
schema: |
390 |
schema: |
391 |
$ref: ../definitions.yaml#/error |
391 |
$ref: "../swagger.yaml#/definitions/error" |
392 |
"503": |
392 |
"503": |
393 |
description: Under maintenance |
393 |
description: Under maintenance |
394 |
schema: |
394 |
schema: |
395 |
$ref: ../definitions.yaml#/error |
395 |
$ref: "../swagger.yaml#/definitions/error" |
396 |
x-koha-authorization: |
396 |
x-koha-authorization: |
397 |
permissions: |
397 |
permissions: |
398 |
reserveforothers: "1" |
398 |
reserveforothers: "1" |
Lines 404-410
Link Here
|
404 |
- holds |
404 |
- holds |
405 |
summary: Update priority for the hold |
405 |
summary: Update priority for the hold |
406 |
parameters: |
406 |
parameters: |
407 |
- $ref: ../parameters.yaml#/hold_id_pp |
407 |
- $ref: "../swagger.yaml#/parameters/hold_id_pp" |
408 |
- name: body |
408 |
- name: body |
409 |
in: body |
409 |
in: body |
410 |
description: An integer representing the new priority to be set for the hold |
410 |
description: An integer representing the new priority to be set for the hold |
Lines 421-450
Link Here
|
421 |
"401": |
421 |
"401": |
422 |
description: Authentication required |
422 |
description: Authentication required |
423 |
schema: |
423 |
schema: |
424 |
$ref: ../definitions.yaml#/error |
424 |
$ref: "../swagger.yaml#/definitions/error" |
425 |
"403": |
425 |
"403": |
426 |
description: Access forbidden |
426 |
description: Access forbidden |
427 |
schema: |
427 |
schema: |
428 |
$ref: ../definitions.yaml#/error |
428 |
$ref: "../swagger.yaml#/definitions/error" |
429 |
"404": |
429 |
"404": |
430 |
description: Biblio not found |
430 |
description: Biblio not found |
431 |
schema: |
431 |
schema: |
432 |
$ref: ../definitions.yaml#/error |
432 |
$ref: "../swagger.yaml#/definitions/error" |
433 |
"409": |
433 |
"409": |
434 |
description: Unable to perform action on biblio |
434 |
description: Unable to perform action on biblio |
435 |
schema: |
435 |
schema: |
436 |
$ref: ../definitions.yaml#/error |
436 |
$ref: "../swagger.yaml#/definitions/error" |
437 |
"500": |
437 |
"500": |
438 |
description: | |
438 |
description: | |
439 |
Internal server error. Possible `error_code` attribute values: |
439 |
Internal server error. Possible `error_code` attribute values: |
440 |
|
440 |
|
441 |
* `internal_server_error` |
441 |
* `internal_server_error` |
442 |
schema: |
442 |
schema: |
443 |
$ref: ../definitions.yaml#/error |
443 |
$ref: "../swagger.yaml#/definitions/error" |
444 |
"503": |
444 |
"503": |
445 |
description: Under maintenance |
445 |
description: Under maintenance |
446 |
schema: |
446 |
schema: |
447 |
$ref: ../definitions.yaml#/error |
447 |
$ref: "../swagger.yaml#/definitions/error" |
448 |
x-koha-authorization: |
448 |
x-koha-authorization: |
449 |
permissions: |
449 |
permissions: |
450 |
reserveforothers: modify_holds_priority |
450 |
reserveforothers: modify_holds_priority |
Lines 456-462
Link Here
|
456 |
- holds |
456 |
- holds |
457 |
summary: Suspend the hold |
457 |
summary: Suspend the hold |
458 |
parameters: |
458 |
parameters: |
459 |
- $ref: ../parameters.yaml#/hold_id_pp |
459 |
- $ref: "../swagger.yaml#/parameters/hold_id_pp" |
460 |
- name: body |
460 |
- name: body |
461 |
in: body |
461 |
in: body |
462 |
description: A JSON object containing fields to modify |
462 |
description: A JSON object containing fields to modify |
Lines 479-508
Link Here
|
479 |
"400": |
479 |
"400": |
480 |
description: Missing or wrong parameters |
480 |
description: Missing or wrong parameters |
481 |
schema: |
481 |
schema: |
482 |
$ref: ../definitions.yaml#/error |
482 |
$ref: "../swagger.yaml#/definitions/error" |
483 |
"401": |
483 |
"401": |
484 |
description: Authentication required |
484 |
description: Authentication required |
485 |
schema: |
485 |
schema: |
486 |
$ref: ../definitions.yaml#/error |
486 |
$ref: "../swagger.yaml#/definitions/error" |
487 |
"403": |
487 |
"403": |
488 |
description: Hold not allowed |
488 |
description: Hold not allowed |
489 |
schema: |
489 |
schema: |
490 |
$ref: ../definitions.yaml#/error |
490 |
$ref: "../swagger.yaml#/definitions/error" |
491 |
"404": |
491 |
"404": |
492 |
description: Hold not found |
492 |
description: Hold not found |
493 |
schema: |
493 |
schema: |
494 |
$ref: ../definitions.yaml#/error |
494 |
$ref: "../swagger.yaml#/definitions/error" |
495 |
"500": |
495 |
"500": |
496 |
description: | |
496 |
description: | |
497 |
Internal server error. Possible `error_code` attribute values: |
497 |
Internal server error. Possible `error_code` attribute values: |
498 |
|
498 |
|
499 |
* `internal_server_error` |
499 |
* `internal_server_error` |
500 |
schema: |
500 |
schema: |
501 |
$ref: ../definitions.yaml#/error |
501 |
$ref: "../swagger.yaml#/definitions/error" |
502 |
"503": |
502 |
"503": |
503 |
description: Under maintenance |
503 |
description: Under maintenance |
504 |
schema: |
504 |
schema: |
505 |
$ref: ../definitions.yaml#/error |
505 |
$ref: "../swagger.yaml#/definitions/error" |
506 |
x-koha-authorization: |
506 |
x-koha-authorization: |
507 |
permissions: |
507 |
permissions: |
508 |
reserveforothers: "1" |
508 |
reserveforothers: "1" |
Lines 513-519
Link Here
|
513 |
- holds |
513 |
- holds |
514 |
summary: Resume hold |
514 |
summary: Resume hold |
515 |
parameters: |
515 |
parameters: |
516 |
- $ref: ../parameters.yaml#/hold_id_pp |
516 |
- $ref: "../swagger.yaml#/parameters/hold_id_pp" |
517 |
consumes: |
517 |
consumes: |
518 |
- application/json |
518 |
- application/json |
519 |
produces: |
519 |
produces: |
Lines 524-553
Link Here
|
524 |
"400": |
524 |
"400": |
525 |
description: Missing or wrong parameters |
525 |
description: Missing or wrong parameters |
526 |
schema: |
526 |
schema: |
527 |
$ref: ../definitions.yaml#/error |
527 |
$ref: "../swagger.yaml#/definitions/error" |
528 |
"401": |
528 |
"401": |
529 |
description: Authentication required |
529 |
description: Authentication required |
530 |
schema: |
530 |
schema: |
531 |
$ref: ../definitions.yaml#/error |
531 |
$ref: "../swagger.yaml#/definitions/error" |
532 |
"403": |
532 |
"403": |
533 |
description: Hold not allowed |
533 |
description: Hold not allowed |
534 |
schema: |
534 |
schema: |
535 |
$ref: ../definitions.yaml#/error |
535 |
$ref: "../swagger.yaml#/definitions/error" |
536 |
"404": |
536 |
"404": |
537 |
description: Hold not found |
537 |
description: Hold not found |
538 |
schema: |
538 |
schema: |
539 |
$ref: ../definitions.yaml#/error |
539 |
$ref: "../swagger.yaml#/definitions/error" |
540 |
"500": |
540 |
"500": |
541 |
description: | |
541 |
description: | |
542 |
Internal server error. Possible `error_code` attribute values: |
542 |
Internal server error. Possible `error_code` attribute values: |
543 |
|
543 |
|
544 |
* `internal_server_error` |
544 |
* `internal_server_error` |
545 |
schema: |
545 |
schema: |
546 |
$ref: ../definitions.yaml#/error |
546 |
$ref: "../swagger.yaml#/definitions/error" |
547 |
"503": |
547 |
"503": |
548 |
description: Under maintenance |
548 |
description: Under maintenance |
549 |
schema: |
549 |
schema: |
550 |
$ref: ../definitions.yaml#/error |
550 |
$ref: "../swagger.yaml#/definitions/error" |
551 |
x-koha-authorization: |
551 |
x-koha-authorization: |
552 |
permissions: |
552 |
permissions: |
553 |
reserveforothers: "1" |
553 |
reserveforothers: "1" |
Lines 564-577
Link Here
|
564 |
in: header |
564 |
in: header |
565 |
type: string |
565 |
type: string |
566 |
required: false |
566 |
required: false |
567 |
- $ref: ../parameters.yaml#/hold_id_pp |
567 |
- $ref: "../swagger.yaml#/parameters/hold_id_pp" |
568 |
- $ref: ../parameters.yaml#/match |
568 |
- $ref: "../swagger.yaml#/parameters/match" |
569 |
- $ref: ../parameters.yaml#/order_by |
569 |
- $ref: "../swagger.yaml#/parameters/order_by" |
570 |
- $ref: ../parameters.yaml#/page |
570 |
- $ref: "../swagger.yaml#/parameters/page" |
571 |
- $ref: ../parameters.yaml#/per_page |
571 |
- $ref: "../swagger.yaml#/parameters/per_page" |
572 |
- $ref: ../parameters.yaml#/q_param |
572 |
- $ref: "../swagger.yaml#/parameters/q_param" |
573 |
- $ref: ../parameters.yaml#/q_body |
573 |
- $ref: "../swagger.yaml#/parameters/q_body" |
574 |
- $ref: ../parameters.yaml#/q_header |
574 |
- $ref: "../swagger.yaml#/parameters/q_header" |
575 |
produces: |
575 |
produces: |
576 |
- application/json |
576 |
- application/json |
577 |
responses: |
577 |
responses: |
Lines 580-613
Link Here
|
580 |
schema: |
580 |
schema: |
581 |
type: array |
581 |
type: array |
582 |
items: |
582 |
items: |
583 |
$ref: ../definitions.yaml#/library |
583 |
$ref: "../swagger.yaml#/definitions/library" |
584 |
"400": |
584 |
"400": |
585 |
description: Missing or wrong parameters |
585 |
description: Missing or wrong parameters |
586 |
schema: |
586 |
schema: |
587 |
$ref: ../definitions.yaml#/error |
587 |
$ref: "../swagger.yaml#/definitions/error" |
588 |
"401": |
588 |
"401": |
589 |
description: Authentication required |
589 |
description: Authentication required |
590 |
schema: |
590 |
schema: |
591 |
$ref: ../definitions.yaml#/error |
591 |
$ref: "../swagger.yaml#/definitions/error" |
592 |
"403": |
592 |
"403": |
593 |
description: Hold pickup location list not allowed |
593 |
description: Hold pickup location list not allowed |
594 |
schema: |
594 |
schema: |
595 |
$ref: ../definitions.yaml#/error |
595 |
$ref: "../swagger.yaml#/definitions/error" |
596 |
"404": |
596 |
"404": |
597 |
description: Hold not found |
597 |
description: Hold not found |
598 |
schema: |
598 |
schema: |
599 |
$ref: ../definitions.yaml#/error |
599 |
$ref: "../swagger.yaml#/definitions/error" |
600 |
"500": |
600 |
"500": |
601 |
description: | |
601 |
description: | |
602 |
Internal server error. Possible `error_code` attribute values: |
602 |
Internal server error. Possible `error_code` attribute values: |
603 |
|
603 |
|
604 |
* `internal_server_error` |
604 |
* `internal_server_error` |
605 |
schema: |
605 |
schema: |
606 |
$ref: ../definitions.yaml#/error |
606 |
$ref: "../swagger.yaml#/definitions/error" |
607 |
"503": |
607 |
"503": |
608 |
description: Under maintenance |
608 |
description: Under maintenance |
609 |
schema: |
609 |
schema: |
610 |
$ref: ../definitions.yaml#/error |
610 |
$ref: "../swagger.yaml#/definitions/error" |
611 |
x-koha-authorization: |
611 |
x-koha-authorization: |
612 |
permissions: |
612 |
permissions: |
613 |
reserveforothers: place_holds |
613 |
reserveforothers: place_holds |
Lines 620-626
Link Here
|
620 |
summary: Update pickup location for the hold |
620 |
summary: Update pickup location for the hold |
621 |
description: Set a new pickup location for the hold |
621 |
description: Set a new pickup location for the hold |
622 |
parameters: |
622 |
parameters: |
623 |
- $ref: ../parameters.yaml#/hold_id_pp |
623 |
- $ref: "../swagger.yaml#/parameters/hold_id_pp" |
624 |
- name: body |
624 |
- name: body |
625 |
in: body |
625 |
in: body |
626 |
description: Pickup location |
626 |
description: Pickup location |
Lines 647-677
Link Here
|
647 |
"400": |
647 |
"400": |
648 |
description: Missing or wrong parameters |
648 |
description: Missing or wrong parameters |
649 |
schema: |
649 |
schema: |
650 |
$ref: ../definitions.yaml#/error |
650 |
$ref: "../swagger.yaml#/definitions/error" |
651 |
"401": |
651 |
"401": |
652 |
description: Authentication required |
652 |
description: Authentication required |
653 |
schema: |
653 |
schema: |
654 |
$ref: ../definitions.yaml#/error |
654 |
$ref: "../swagger.yaml#/definitions/error" |
655 |
"403": |
655 |
"403": |
656 |
description: Access forbidden |
656 |
description: Access forbidden |
657 |
schema: |
657 |
schema: |
658 |
$ref: ../definitions.yaml#/error |
658 |
$ref: "../swagger.yaml#/definitions/error" |
659 |
"404": |
659 |
"404": |
660 |
description: Hold not found |
660 |
description: Hold not found |
661 |
schema: |
661 |
schema: |
662 |
$ref: ../definitions.yaml#/error |
662 |
$ref: "../swagger.yaml#/definitions/error" |
663 |
"409": |
663 |
"409": |
664 |
description: Unable to perform action on hold |
664 |
description: Unable to perform action on hold |
665 |
schema: |
665 |
schema: |
666 |
$ref: ../definitions.yaml#/error |
666 |
$ref: "../swagger.yaml#/definitions/error" |
667 |
"500": |
667 |
"500": |
668 |
description: Internal error |
668 |
description: Internal error |
669 |
schema: |
669 |
schema: |
670 |
$ref: ../definitions.yaml#/error |
670 |
$ref: "../swagger.yaml#/definitions/error" |
671 |
"503": |
671 |
"503": |
672 |
description: Under maintenance |
672 |
description: Under maintenance |
673 |
schema: |
673 |
schema: |
674 |
$ref: ../definitions.yaml#/error |
674 |
$ref: "../swagger.yaml#/definitions/error" |
675 |
x-koha-authorization: |
675 |
x-koha-authorization: |
676 |
permissions: |
676 |
permissions: |
677 |
reserveforothers: place_holds |
677 |
reserveforothers: place_holds |