2 "/patrons/{patron_id}/password":
4 x-mojo-to: Patrons::Password#set
5 operationId: setPatronPassword
8 summary: Set password for a patron
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)
26 additionalProperties: false
31 description: Password changed
33 description: Bad request
35 $ref: "../swagger.yaml#/definitions/error"
37 description: Authentication required
39 $ref: "../swagger.yaml#/definitions/error"
41 description: Access forbidden
43 $ref: "../swagger.yaml#/definitions/error"
45 description: Patron not found
47 $ref: "../swagger.yaml#/definitions/error"
50 Internal server error. Possible `error_code` attribute values:
52 * `internal_server_error`
54 $ref: "../swagger.yaml#/definitions/error"
56 description: Under maintenance
58 $ref: "../swagger.yaml#/definitions/error"
62 "/patrons/{patron_id}/password/expiration_date":
64 x-mojo-to: Patrons::Password::Expiration#set
65 operationId: setPatronPasswordExpiration
68 summary: Set password expiration for a patron
70 - $ref: ../swagger.yaml#/parameters/patron_id_pp
73 description: A JSON object containing password expiration date
78 description: Date to expire password
83 additionalProperties: false
88 description: Password expiration changed
90 description: Bad request
92 $ref: ../swagger.yaml#/definitions/error
94 description: Authentication required
96 $ref: ../swagger.yaml#/definitions/error
98 description: Access forbidden
100 $ref: ../swagger.yaml#/definitions/error
102 description: Patron not found
104 $ref: ../swagger.yaml#/definitions/error
107 Internal server error. Possible `error_code` attribute values:
109 * `internal_server_error`
111 $ref: ../swagger.yaml#/definitions/error
113 description: Under maintenance
115 $ref: ../swagger.yaml#/definitions/error
116 x-koha-authorization: