2 "/patrons/{patron_id}/extended_attributes": {
4 "x-mojo-to": "Patrons::Attributes#list_patron_attributes",
5 "operationId": "getPatronAttributes",
12 "$ref": "../parameters.json#/patron_id_pp"
15 "$ref": "../parameters.json#/match"
18 "$ref": "../parameters.json#/order_by"
21 "$ref": "../parameters.json#/page"
24 "$ref": "../parameters.json#/per_page"
27 "$ref": "../parameters.json#/q_param"
30 "$ref": "../parameters.json#/q_body"
33 "$ref": "../parameters.json#/q_header"
41 "description": "The patron extended attributes",
45 "$ref": "../definitions.json#/patron_extended_attribute"
50 "description": "Authentication required",
52 "$ref": "../definitions.json#/error"
56 "description": "Access forbidden",
58 "$ref": "../definitions.json#/error"
62 "description": "Patron not found",
64 "$ref": "../definitions.json#/error"
68 "description": "Internal server error",
70 "$ref": "../definitions.json#/error"
74 "description": "Under maintenance",
76 "$ref": "../definitions.json#/error"
80 "x-koha-authorization": {
82 "borrowers": "edit_borrowers"
87 "x-mojo-to": "Patrons::Attributes#add",
88 "operationId": "addPatronAttribute",
95 "$ref": "../parameters.json#/patron_id_pp"
100 "description": "A JSON representation of the patron extended attribute",
103 "$ref": "../definitions.json#/patron_extended_attribute"
112 "description": "A successfully created patron extended attribute",
114 "$ref": "../definitions.json#/patron_extended_attribute"
118 "description": "Bad parameter",
120 "$ref": "../definitions.json#/error"
124 "description": "Authentication required",
126 "$ref": "../definitions.json#/error"
130 "description": "Access forbidden",
132 "$ref": "../definitions.json#/error"
136 "description": "Patron not found",
138 "$ref": "../definitions.json#/error"
142 "description": "Conflict in creating resource",
144 "$ref": "../definitions.json#/error"
148 "description": "Internal server error",
150 "$ref": "../definitions.json#/error"
154 "description": "Under maintenance",
156 "$ref": "../definitions.json#/error"
160 "x-koha-authorization": {
162 "borrowers": "edit_borrowers"
167 "x-mojo-to": "Patrons::Attributes#overwrite",
168 "operationId": "overwritePatronAttributes",
171 "extended_attributes"
175 "$ref": "../parameters.json#/patron_id_pp"
180 "description": "A JSON representation of the patron extended attribute",
185 "$ref": "../definitions.json#/patron_extended_attribute"
195 "description": "The successfully created patron extended attributes",
199 "$ref": "../definitions.json#/patron_extended_attribute"
204 "description": "Bad parameters",
206 "$ref": "../definitions.json#/error"
210 "description": "Authentication required",
212 "$ref": "../definitions.json#/error"
216 "description": "Access forbidden",
218 "$ref": "../definitions.json#/error"
222 "description": "Patron not found",
224 "$ref": "../definitions.json#/error"
228 "description": "Conflict in creating resource",
230 "$ref": "../definitions.json#/error"
234 "description": "Internal server error",
236 "$ref": "../definitions.json#/error"
240 "description": "Under maintenance",
242 "$ref": "../definitions.json#/error"
246 "x-koha-authorization": {
248 "borrowers": "edit_borrowers"
253 "/patrons/{patron_id}/extended_attributes/{extended_attribute_id}": {
255 "x-mojo-to": "Patrons::Attributes#update",
256 "operationId": "updatePatronAttribute",
259 "extended_attributes"
263 "$ref": "../parameters.json#/patron_id_pp"
266 "name": "extended_attribute_id",
268 "description": "Internal patron extended attribute identifier",
275 "description": "An object containing the updated values for the patron extended attribute",
281 "description": "Extended attribute value",
293 "description": "A successfully updated patron extended attribute",
295 "$ref": "../definitions.json#/patron_extended_attribute"
299 "description": "Bad parameter",
301 "$ref": "../definitions.json#/error"
305 "description": "Authentication required",
307 "$ref": "../definitions.json#/error"
311 "description": "Access forbidden",
313 "$ref": "../definitions.json#/error"
317 "description": "Object not found",
319 "$ref": "../definitions.json#/error"
323 "description": "Conflict in updating resource",
325 "$ref": "../definitions.json#/error"
329 "description": "Internal server error",
331 "$ref": "../definitions.json#/error"
335 "description": "Under maintenance",
337 "$ref": "../definitions.json#/error"
341 "x-koha-authorization": {
343 "borrowers": "edit_borrowers"
348 "x-mojo-to": "Patrons::Attributes#delete",
349 "operationId": "deletePatronAttribute",
352 "extended_attributes"
356 "$ref": "../parameters.json#/patron_id_pp"
359 "name": "extended_attribute_id",
361 "description": "Internal patron extended attribute identifier",
371 "description": "Extended patron attribute deleted"
374 "description": "Authentication required",
376 "$ref": "../definitions.json#/error"
380 "description": "Access forbidden",
382 "$ref": "../definitions.json#/error"
386 "description": "Patron not found",
388 "$ref": "../definitions.json#/error"
392 "description": "Internal server error",
394 "$ref": "../definitions.json#/error"
398 "description": "Under maintenance",
400 "$ref": "../definitions.json#/error"
404 "x-koha-authorization": {
406 "borrowers": "edit_borrowers"