2 "/patrons/{patron_id}/extended_attributes":
4 x-mojo-to: Patrons::Attributes#list_patron_attributes
5 operationId: getPatronAttributes
8 summary: List extended attributes for a patron
10 - $ref: "../swagger.yaml#/parameters/patron_id_pp"
11 - $ref: "../swagger.yaml#/parameters/match"
12 - $ref: "../swagger.yaml#/parameters/order_by"
13 - $ref: "../swagger.yaml#/parameters/page"
14 - $ref: "../swagger.yaml#/parameters/per_page"
15 - $ref: "../swagger.yaml#/parameters/q_param"
16 - $ref: "../swagger.yaml#/parameters/q_body"
17 - $ref: "../swagger.yaml#/parameters/q_header"
18 - $ref: "../swagger.yaml#/parameters/request_id_header"
23 description: The patron extended attributes
27 $ref: "../swagger.yaml#/definitions/patron_extended_attribute"
29 description: Authentication required
31 $ref: "../swagger.yaml#/definitions/error"
33 description: Access forbidden
35 $ref: "../swagger.yaml#/definitions/error"
37 description: Patron not found
39 $ref: "../swagger.yaml#/definitions/error"
42 Internal server error. Possible `error_code` attribute values:
44 * `internal_server_error`
46 $ref: "../swagger.yaml#/definitions/error"
48 description: Under maintenance
50 $ref: "../swagger.yaml#/definitions/error"
53 borrowers: edit_borrowers
55 x-mojo-to: Patrons::Attributes#add
56 operationId: addPatronAttribute
59 summary: Add extended attribute for a patron
61 - $ref: "../swagger.yaml#/parameters/patron_id_pp"
64 description: A JSON representation of the patron extended attribute
67 $ref: "../swagger.yaml#/definitions/patron_extended_attribute"
72 description: A successfully created patron extended attribute
74 $ref: "../swagger.yaml#/definitions/patron_extended_attribute"
76 description: Bad parameter
78 $ref: "../swagger.yaml#/definitions/error"
80 description: Authentication required
82 $ref: "../swagger.yaml#/definitions/error"
84 description: Access forbidden
86 $ref: "../swagger.yaml#/definitions/error"
88 description: Patron not found
90 $ref: "../swagger.yaml#/definitions/error"
92 description: Conflict in creating resource
94 $ref: "../swagger.yaml#/definitions/error"
97 Internal server error. Possible `error_code` attribute values:
99 * `internal_server_error`
101 $ref: "../swagger.yaml#/definitions/error"
103 description: Under maintenance
105 $ref: "../swagger.yaml#/definitions/error"
106 x-koha-authorization:
108 borrowers: edit_borrowers
110 x-mojo-to: Patrons::Attributes#overwrite
111 operationId: overwritePatronAttributes
114 summary: Overwrite extended attributes for a patron
116 - $ref: "../swagger.yaml#/parameters/patron_id_pp"
119 description: A JSON representation of the patron extended attribute
124 $ref: "../swagger.yaml#/definitions/patron_extended_attribute"
129 description: The successfully created patron extended attributes
133 $ref: "../swagger.yaml#/definitions/patron_extended_attribute"
135 description: Bad parameters
137 $ref: "../swagger.yaml#/definitions/error"
139 description: Authentication required
141 $ref: "../swagger.yaml#/definitions/error"
143 description: Access forbidden
145 $ref: "../swagger.yaml#/definitions/error"
147 description: Patron not found
149 $ref: "../swagger.yaml#/definitions/error"
151 description: Conflict in creating resource
153 $ref: "../swagger.yaml#/definitions/error"
156 Internal server error. Possible `error_code` attribute values:
158 * `internal_server_error`
160 $ref: "../swagger.yaml#/definitions/error"
162 description: Under maintenance
164 $ref: "../swagger.yaml#/definitions/error"
165 x-koha-authorization:
167 borrowers: edit_borrowers
168 "/patrons/{patron_id}/extended_attributes/{extended_attribute_id}":
170 x-mojo-to: Patrons::Attributes#update
171 operationId: updatePatronAttribute
174 summary: Update extended attribute
176 - $ref: "../swagger.yaml#/parameters/patron_id_pp"
177 - name: extended_attribute_id
179 description: Internal patron extended attribute identifier
184 description: An object containing the updated values for the patron extended
191 description: Extended attribute value
193 additionalProperties: false
198 description: A successfully updated patron extended attribute
200 $ref: "../swagger.yaml#/definitions/patron_extended_attribute"
202 description: Bad parameter
204 $ref: "../swagger.yaml#/definitions/error"
206 description: Authentication required
208 $ref: "../swagger.yaml#/definitions/error"
210 description: Access forbidden
212 $ref: "../swagger.yaml#/definitions/error"
214 description: Object not found
216 $ref: "../swagger.yaml#/definitions/error"
218 description: Conflict in updating resource
220 $ref: "../swagger.yaml#/definitions/error"
223 Internal server error. Possible `error_code` attribute values:
225 * `internal_server_error`
227 $ref: "../swagger.yaml#/definitions/error"
229 description: Under maintenance
231 $ref: "../swagger.yaml#/definitions/error"
232 x-koha-authorization:
234 borrowers: edit_borrowers
236 x-mojo-to: Patrons::Attributes#delete
237 operationId: deletePatronAttribute
240 summary: Delete extended attribute
242 - $ref: "../swagger.yaml#/parameters/patron_id_pp"
243 - name: extended_attribute_id
245 description: Internal patron extended attribute identifier
252 description: Extended patron attribute deleted
254 description: Authentication required
256 $ref: "../swagger.yaml#/definitions/error"
258 description: Access forbidden
260 $ref: "../swagger.yaml#/definitions/error"
262 description: Patron not found
264 $ref: "../swagger.yaml#/definitions/error"
267 Internal server error. Possible `error_code` attribute values:
269 * `internal_server_error`
271 $ref: "../swagger.yaml#/definitions/error"
273 description: Under maintenance
275 $ref: "../swagger.yaml#/definitions/error"
276 x-koha-authorization:
278 borrowers: edit_borrowers