|
Lines 210-212
Link Here
|
| 210 |
x-koha-authorization: |
210 |
x-koha-authorization: |
| 211 |
permissions: |
211 |
permissions: |
| 212 |
editcatalogue: edit_catalogue |
212 |
editcatalogue: edit_catalogue |
|
|
213 |
/public/catalog/concerns: |
| 214 |
post: |
| 215 |
x-mojo-to: Catalog::Concerns#add |
| 216 |
operationId: addConcernPublic |
| 217 |
tags: |
| 218 |
- concerns |
| 219 |
summary: Add catalog concern |
| 220 |
parameters: |
| 221 |
- name: body |
| 222 |
in: body |
| 223 |
description: A JSON object containing informations about the new hold |
| 224 |
required: true |
| 225 |
schema: |
| 226 |
$ref: "../swagger.yaml#/definitions/catalog_concern" |
| 227 |
produces: |
| 228 |
- application/json |
| 229 |
responses: |
| 230 |
"201": |
| 231 |
description: Concern added |
| 232 |
schema: |
| 233 |
$ref: "../swagger.yaml#/definitions/catalog_concern" |
| 234 |
"401": |
| 235 |
description: Authentication required |
| 236 |
schema: |
| 237 |
$ref: "../swagger.yaml#/definitions/error" |
| 238 |
"403": |
| 239 |
description: Access forbidden |
| 240 |
schema: |
| 241 |
$ref: "../swagger.yaml#/definitions/error" |
| 242 |
"500": |
| 243 |
description: | |
| 244 |
Internal server error. Possible `error_code` attribute values: |
| 245 |
|
| 246 |
* `internal_server_error` |
| 247 |
schema: |
| 248 |
$ref: "../swagger.yaml#/definitions/error" |
| 249 |
"503": |
| 250 |
description: Under maintenance |
| 251 |
schema: |
| 252 |
$ref: "../swagger.yaml#/definitions/error" |