2 "/public/patrons/{patron_id}/password":
4 x-mojo-to: Patrons::Password#set_public
5 operationId: setPatronPasswordPublic
8 summary: Set password for a patron (public)
10 - $ref: "../swagger.yaml#/parameters/patron_id_pp"
13 description: A JSON object containing password information
18 description: New password (plain text)
21 description: Repeated new password (plain text)
24 description: Patron's original password
30 additionalProperties: false
35 description: Password changed
37 description: Bad request
39 $ref: "../swagger.yaml#/definitions/error"
41 description: Authentication required
43 $ref: "../swagger.yaml#/definitions/error"
45 description: Access forbidden
47 $ref: "../swagger.yaml#/definitions/error"
49 description: Patron not found
51 $ref: "../swagger.yaml#/definitions/error"
54 Internal server error. Possible `error_code` attribute values:
56 * `internal_server_error`
58 $ref: "../swagger.yaml#/definitions/error"
60 description: Under maintenance
62 $ref: "../swagger.yaml#/definitions/error"
65 "/public/patrons/{patron_id}/checkouts":
67 x-mojo-to: Checkouts#add
68 operationId: addCheckoutPublic
72 summary: Add a new checkout
74 - $ref: "../swagger.yaml#/parameters/patron_id_pp"
77 description: A JSON object containing information about the new checkout
80 $ref: "../swagger.yaml#/definitions/checkout"
83 description: A JWT confirmation token
90 description: Created checkout
92 $ref: "../swagger.yaml#/definitions/checkout"
94 description: Missing or wrong parameters
96 $ref: "../swagger.yaml#/definitions/error"
98 description: Authentication required
100 $ref: "../swagger.yaml#/definitions/error"
102 description: Cannot create checkout
104 $ref: "../swagger.yaml#/definitions/error"
106 description: Conflict in creating checkout
108 $ref: "../swagger.yaml#/definitions/error"
110 description: Precondition failed
112 $ref: "../swagger.yaml#/definitions/error"
115 Internal server error. Possible `error_code` attribute values:
117 * `internal_server_error`
119 $ref: "../swagger.yaml#/definitions/error"
121 description: Under maintenance
123 $ref: "../swagger.yaml#/definitions/error"
124 x-koha-authorization:
126 "/public/patrons/{patron_id}/guarantors/can_see_charges":
128 x-mojo-to: Patrons#guarantors_can_see_charges
129 operationId: setPatronGuarantorsCanSeeCharges
132 summary: Set if guarantors can see charges (public)
134 - $ref: "../swagger.yaml#/parameters/patron_id_pp"
137 description: A boolean representing if guarantors should be able to see the
145 additionalProperties: false
150 description: Charges view policy for guarantors changed
152 description: Bad request
154 $ref: "../swagger.yaml#/definitions/error"
156 description: Authentication required
158 $ref: "../swagger.yaml#/definitions/error"
160 description: Access forbidden
162 $ref: "../swagger.yaml#/definitions/error"
164 description: Patron not found
166 $ref: "../swagger.yaml#/definitions/error"
169 Internal server error. Possible `error_code` attribute values:
171 * `internal_server_error`
173 $ref: "../swagger.yaml#/definitions/error"
175 description: Under maintenance
177 $ref: "../swagger.yaml#/definitions/error"
178 x-koha-authorization:
180 "/public/patrons/{patron_id}/guarantors/can_see_checkouts":
182 x-mojo-to: Patrons#guarantors_can_see_checkouts
183 operationId: setPatronGuarantorsCanSeeCheckouts
186 summary: Set if guarantors can see checkouts
188 - $ref: "../swagger.yaml#/parameters/patron_id_pp"
191 description: A boolean representing if guarantors should be able to see the
199 additionalProperties: false
204 description: Check-out view policy for guarantors changed
206 description: Bad request
208 $ref: "../swagger.yaml#/definitions/error"
210 description: Authentication required
212 $ref: "../swagger.yaml#/definitions/error"
214 description: Access forbidden
216 $ref: "../swagger.yaml#/definitions/error"
218 description: Patron not found
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 "/public/patrons/{patron_id}/holds/{hold_id}":
236 x-mojo-to: Patrons::Holds#delete_public
237 operationId: cancelPatronHoldPublic
240 summary: Cancel a patron's hold (public)
242 - $ref: "../swagger.yaml#/parameters/patron_id_pp"
243 - $ref: "../swagger.yaml#/parameters/hold_id_pp"
248 description: Hold cancellation request accepted
250 description: Hold cancelled
252 description: Bad request
254 $ref: "../swagger.yaml#/definitions/error"
256 description: Authentication required
258 $ref: "../swagger.yaml#/definitions/error"
260 description: Access forbidden
262 $ref: "../swagger.yaml#/definitions/error"
264 description: Hold not found
266 $ref: "../swagger.yaml#/definitions/error"
269 Internal server error. Possible `error_code` attribute values:
271 * `internal_server_error`
273 $ref: "../swagger.yaml#/definitions/error"
275 description: Under maintenance
277 $ref: "../swagger.yaml#/definitions/error"
278 x-koha-authorization: