2 "/patrons/{patron_id}/extended_attributes": {
4 "x-mojo-to": "Patrons::Attributes#list_patron_attributes",
5 "operationId": "getPatronAttributes",
11 "$ref": "../parameters.json#/patron_id_pp"
14 "$ref": "../parameters.json#/match"
17 "$ref": "../parameters.json#/order_by"
20 "$ref": "../parameters.json#/page"
23 "$ref": "../parameters.json#/per_page"
26 "$ref": "../parameters.json#/q_param"
29 "$ref": "../parameters.json#/q_body"
32 "$ref": "../parameters.json#/q_header"
40 "description": "The patron extended attributes",
44 "$ref": "../definitions.json#/patron_extended_attribute"
49 "description": "Authentication required",
51 "$ref": "../definitions.json#/error"
55 "description": "Access forbidden",
57 "$ref": "../definitions.json#/error"
61 "description": "Patron not found",
63 "$ref": "../definitions.json#/error"
67 "description": "Internal server error",
69 "$ref": "../definitions.json#/error"
73 "description": "Under maintenance",
75 "$ref": "../definitions.json#/error"
79 "x-koha-authorization": {
81 "borrowers": "edit_borrowers"
86 "x-mojo-to": "Patrons::Attributes#add",
87 "operationId": "addPatronAttribute",
93 "$ref": "../parameters.json#/patron_id_pp"
98 "description": "A JSON representation of the patron extended attribute",
101 "$ref": "../definitions.json#/patron_extended_attribute"
110 "description": "A successfully created patron extended attribute",
112 "$ref": "../definitions.json#/patron_extended_attribute"
116 "description": "Bad parameter",
118 "$ref": "../definitions.json#/error"
122 "description": "Authentication required",
124 "$ref": "../definitions.json#/error"
128 "description": "Access forbidden",
130 "$ref": "../definitions.json#/error"
134 "description": "Patron not found",
136 "$ref": "../definitions.json#/error"
140 "description": "Conflict in creating resource",
142 "$ref": "../definitions.json#/error"
146 "description": "Internal server error",
148 "$ref": "../definitions.json#/error"
152 "description": "Under maintenance",
154 "$ref": "../definitions.json#/error"
158 "x-koha-authorization": {
160 "borrowers": "edit_borrowers"
165 "x-mojo-to": "Patrons::Attributes#overwrite",
166 "operationId": "overwritePatronAttributes",
172 "$ref": "../parameters.json#/patron_id_pp"
177 "description": "A JSON representation of the patron extended attribute",
182 "$ref": "../definitions.json#/patron_extended_attribute"
192 "description": "The successfully created patron extended attributes",
196 "$ref": "../definitions.json#/patron_extended_attribute"
201 "description": "Bad parameters",
203 "$ref": "../definitions.json#/error"
207 "description": "Authentication required",
209 "$ref": "../definitions.json#/error"
213 "description": "Access forbidden",
215 "$ref": "../definitions.json#/error"
219 "description": "Patron not found",
221 "$ref": "../definitions.json#/error"
225 "description": "Conflict in creating resource",
227 "$ref": "../definitions.json#/error"
231 "description": "Internal server error",
233 "$ref": "../definitions.json#/error"
237 "description": "Under maintenance",
239 "$ref": "../definitions.json#/error"
243 "x-koha-authorization": {
245 "borrowers": "edit_borrowers"
250 "/patrons/{patron_id}/extended_attributes/{extended_attribute_id}": {
252 "x-mojo-to": "Patrons::Attributes#update",
253 "operationId": "updatePatronAttribute",
259 "$ref": "../parameters.json#/patron_id_pp"
262 "name": "extended_attribute_id",
264 "description": "Internal patron extended attribute identifier",
271 "description": "An object containing the updated values for the patron extended attribute",
277 "description": "Extended attribute value",
281 "additionalProperties": false
290 "description": "A successfully updated patron extended attribute",
292 "$ref": "../definitions.json#/patron_extended_attribute"
296 "description": "Bad parameter",
298 "$ref": "../definitions.json#/error"
302 "description": "Authentication required",
304 "$ref": "../definitions.json#/error"
308 "description": "Access forbidden",
310 "$ref": "../definitions.json#/error"
314 "description": "Object not found",
316 "$ref": "../definitions.json#/error"
320 "description": "Conflict in updating resource",
322 "$ref": "../definitions.json#/error"
326 "description": "Internal server error",
328 "$ref": "../definitions.json#/error"
332 "description": "Under maintenance",
334 "$ref": "../definitions.json#/error"
338 "x-koha-authorization": {
340 "borrowers": "edit_borrowers"
345 "x-mojo-to": "Patrons::Attributes#delete",
346 "operationId": "deletePatronAttribute",
352 "$ref": "../parameters.json#/patron_id_pp"
355 "name": "extended_attribute_id",
357 "description": "Internal patron extended attribute identifier",
367 "description": "Extended patron attribute deleted"
370 "description": "Authentication required",
372 "$ref": "../definitions.json#/error"
376 "description": "Access forbidden",
378 "$ref": "../definitions.json#/error"
382 "description": "Patron not found",
384 "$ref": "../definitions.json#/error"
388 "description": "Internal server error",
390 "$ref": "../definitions.json#/error"
394 "description": "Under maintenance",
396 "$ref": "../definitions.json#/error"
400 "x-koha-authorization": {
402 "borrowers": "edit_borrowers"