2 "/patrons/{patron_id}/extended_attributes": {
4 "x-mojo-to": "Patrons::Attributes#list_patron_attributes",
5 "operationId": "getPatronAttributes",
9 "summary": "List extended attributes for a patron",
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",
92 "summary": "Add extended attribute for a patron",
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",
172 "summary": "Overwrite extended attributes for a patron",
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",
260 "summary": "Update extended attribute",
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",
285 "additionalProperties": false
294 "description": "A successfully updated patron extended attribute",
296 "$ref": "../definitions.json#/patron_extended_attribute"
300 "description": "Bad parameter",
302 "$ref": "../definitions.json#/error"
306 "description": "Authentication required",
308 "$ref": "../definitions.json#/error"
312 "description": "Access forbidden",
314 "$ref": "../definitions.json#/error"
318 "description": "Object not found",
320 "$ref": "../definitions.json#/error"
324 "description": "Conflict in updating resource",
326 "$ref": "../definitions.json#/error"
330 "description": "Internal server error",
332 "$ref": "../definitions.json#/error"
336 "description": "Under maintenance",
338 "$ref": "../definitions.json#/error"
342 "x-koha-authorization": {
344 "borrowers": "edit_borrowers"
349 "x-mojo-to": "Patrons::Attributes#delete",
350 "operationId": "deletePatronAttribute",
354 "summary": "Delete extended attribute",
357 "$ref": "../parameters.json#/patron_id_pp"
360 "name": "extended_attribute_id",
362 "description": "Internal patron extended attribute identifier",
372 "description": "Extended patron attribute deleted"
375 "description": "Authentication required",
377 "$ref": "../definitions.json#/error"
381 "description": "Access forbidden",
383 "$ref": "../definitions.json#/error"
387 "description": "Patron not found",
389 "$ref": "../definitions.json#/error"
393 "description": "Internal server error",
395 "$ref": "../definitions.json#/error"
399 "description": "Under maintenance",
401 "$ref": "../definitions.json#/error"
405 "x-koha-authorization": {
407 "borrowers": "edit_borrowers"