2 "/public/patrons/{patron_id}/password": {
4 "x-mojo-to": "Patrons::Password#set_public",
5 "operationId": "setPatronPasswordPublic",
9 "summary": "Set password for a patron (public)",
12 "$ref": "../parameters.json#/patron_id_pp"
17 "description": "A JSON object containing password information",
22 "description": "New password (plain text)",
25 "password_repeated": {
26 "description": "Repeated new password (plain text)",
30 "description": "Patron's original password",
39 "additionalProperties": false
48 "description": "Password changed"
51 "description": "Bad request",
53 "$ref": "../definitions.json#/error"
57 "description": "Authentication required",
59 "$ref": "../definitions.json#/error"
63 "description": "Access forbidden",
65 "$ref": "../definitions.json#/error"
69 "description": "Patron not found",
71 "$ref": "../definitions.json#/error"
75 "description": "Internal server error",
77 "$ref": "../definitions.json#/error"
81 "description": "Under maintenance",
83 "$ref": "../definitions.json#/error"
87 "x-koha-authorization": {
92 "/public/patrons/{patron_id}/guarantors/can_see_charges": {
94 "x-mojo-to": "Patrons#guarantors_can_see_charges",
95 "operationId": "setPatronGuarantorsCanSeeCharges",
99 "summary": "Set if guarantors can see charges (public)",
102 "$ref": "../parameters.json#/patron_id_pp"
107 "description": "A boolean representing if guarantors should be able to see the patron's charges",
116 "additionalProperties": false
125 "description": "Charges view policy for guarantors changed"
128 "description": "Bad request",
130 "$ref": "../definitions.json#/error"
134 "description": "Authentication required",
136 "$ref": "../definitions.json#/error"
140 "description": "Access forbidden",
142 "$ref": "../definitions.json#/error"
146 "description": "Patron not found",
148 "$ref": "../definitions.json#/error"
152 "description": "Internal server error",
154 "$ref": "../definitions.json#/error"
158 "description": "Under maintenance",
160 "$ref": "../definitions.json#/error"
164 "x-koha-authorization": {
169 "/public/patrons/{patron_id}/guarantors/can_see_checkouts": {
171 "x-mojo-to": "Patrons#guarantors_can_see_checkouts",
172 "operationId": "setPatronGuarantorsCanSeeCheckouts",
176 "summary": "Set if guarantors can see checkouts",
179 "$ref": "../parameters.json#/patron_id_pp"
184 "description": "A boolean representing if guarantors should be able to see the patron's checkouts",
193 "additionalProperties": false
202 "description": "Check-out view policy for guarantors changed"
205 "description": "Bad request",
207 "$ref": "../definitions.json#/error"
211 "description": "Authentication required",
213 "$ref": "../definitions.json#/error"
217 "description": "Access forbidden",
219 "$ref": "../definitions.json#/error"
223 "description": "Patron not found",
225 "$ref": "../definitions.json#/error"
229 "description": "Internal server error",
231 "$ref": "../definitions.json#/error"
235 "description": "Under maintenance",
237 "$ref": "../definitions.json#/error"
241 "x-koha-authorization": {