|
Lines 170-172
Link Here
|
| 170 |
$ref: "../swagger.yaml#/definitions/error" |
170 |
$ref: "../swagger.yaml#/definitions/error" |
| 171 |
x-koha-authorization: |
171 |
x-koha-authorization: |
| 172 |
allow-owner: true |
172 |
allow-owner: true |
|
|
173 |
"/public/patrons/{patron_id}/holds/{hold_id}": |
| 174 |
delete: |
| 175 |
x-mojo-to: Patrons::Holds#delete_public |
| 176 |
operationId: cancelPatronHoldPublic |
| 177 |
tags: |
| 178 |
- patrons |
| 179 |
summary: Cancel a patron's hold (public) |
| 180 |
parameters: |
| 181 |
- $ref: "../swagger.yaml#/parameters/patron_id_pp" |
| 182 |
- $ref: "../swagger.yaml#/parameters/hold_id_pp" |
| 183 |
produces: |
| 184 |
- application/json |
| 185 |
responses: |
| 186 |
"202": |
| 187 |
description: Hold cancellation request accepted |
| 188 |
"204": |
| 189 |
description: Hold cancelled |
| 190 |
"400": |
| 191 |
description: Bad request |
| 192 |
schema: |
| 193 |
$ref: "../swagger.yaml#/definitions/error" |
| 194 |
"401": |
| 195 |
description: Authentication required |
| 196 |
schema: |
| 197 |
$ref: "../swagger.yaml#/definitions/error" |
| 198 |
"403": |
| 199 |
description: Access forbidden |
| 200 |
schema: |
| 201 |
$ref: "../swagger.yaml#/definitions/error" |
| 202 |
"404": |
| 203 |
description: Hold not found |
| 204 |
schema: |
| 205 |
$ref: "../swagger.yaml#/definitions/error" |
| 206 |
"500": |
| 207 |
description: | |
| 208 |
Internal server error. Possible `error_code` attribute values: |
| 209 |
|
| 210 |
* `internal_server_error` |
| 211 |
schema: |
| 212 |
$ref: "../swagger.yaml#/definitions/error" |
| 213 |
"503": |
| 214 |
description: Under maintenance |
| 215 |
schema: |
| 216 |
$ref: "../swagger.yaml#/definitions/error" |
| 217 |
x-koha-authorization: |
| 218 |
allow-owner: true |