4 "x-mojo-to": "Holds#list",
5 "operationId": "listHolds",
6 "tags": ["patrons", "holds"],
11 "description": "Internal reserve identifier",
17 "description": "Internal patron identifier",
23 "description": "Hold",
30 "description": "Internal biblio identifier",
34 "name": "pickup_library_id",
36 "description": "Internal library identifier for the pickup library",
40 "name": "cancelation_date",
42 "description": "The date the hold was cancelled",
49 "description": "Notes related to this hold",
55 "description": "Where in the queue the patron sits",
61 "description": "Found status",
67 "description": "Time of latest update",
73 "description": "Internal item identifier",
77 "name": "waiting_date",
79 "description": "Date the item was marked as waiting for the patron",
83 "name": "expiration_date",
85 "description": "Date the hold expires",
89 "name": "lowest_priority",
91 "description": "Lowest priority",
97 "description": "Suspended",
101 "name": "suspended_until",
103 "description": "Suspended until",
107 "produces": ["application/json"],
110 "description": "A list of holds",
112 "$ref": "../definitions.json#/holds"
116 "description": "Authentication required",
118 "$ref": "../definitions.json#/error"
122 "description": "Hold not allowed",
124 "$ref": "../definitions.json#/error"
128 "description": "Borrower not found",
130 "$ref": "../definitions.json#/error"
134 "description": "Internal server error",
136 "$ref": "../definitions.json#/error"
140 "description": "Under maintenance",
142 "$ref": "../definitions.json#/error"
146 "x-koha-authorization": {
148 "borrowers": "edit_borrowers"
153 "x-mojo-to": "Holds#add",
154 "operationId": "addHold",
155 "tags": ["patrons", "holds"],
159 "description": "A JSON object containing informations about the new hold",
165 "description": "Internal patron identifier",
169 "description": "Internal biblio identifier",
170 "type": [ "integer", "null" ]
173 "description": "Internal item identifier",
174 "type": [ "integer", "null" ]
176 "pickup_library_id": {
177 "description": "Internal library identifier for the pickup library",
181 "description": "Hold end date",
182 "type": ["string", "null"],
186 "description": "Notes related to this hold",
187 "type": [ "string", "null" ]
190 "description": "Limit hold on one itemtype (ignored for item-level holds)",
191 "type": [ "string", "null" ]
194 "required": [ "patron_id", "pickup_library_id" ]
198 "consumes": ["application/json"],
199 "produces": ["application/json"],
202 "description": "Created hold",
204 "$ref": "../definitions.json#/hold"
208 "description": "Missing or wrong parameters",
210 "$ref": "../definitions.json#/error"
214 "description": "Authentication required",
216 "$ref": "../definitions.json#/error"
220 "description": "Hold not allowed",
222 "$ref": "../definitions.json#/error"
226 "description": "Borrower not found",
228 "$ref": "../definitions.json#/error"
232 "description": "Internal server error",
234 "$ref": "../definitions.json#/error"
238 "description": "Under maintenance",
240 "$ref": "../definitions.json#/error"
244 "x-koha-authorization": {
246 "reserveforothers": "1"
251 "/holds/{hold_id}": {
253 "x-mojo-to": "Holds#edit",
254 "operationId": "editHold",
257 "$ref": "../parameters.json#/hold_id_pp"
261 "description": "A JSON object containing fields to modify",
267 "description": "Position in waiting queue",
272 "description": "Pickup location",
276 "description": "Suspend until",
284 "consumes": ["application/json"],
285 "produces": ["application/json"],
288 "description": "Updated hold",
290 "$ref": "../definitions.json#/hold"
294 "description": "Missing or wrong parameters",
296 "$ref": "../definitions.json#/error"
300 "description": "Authentication required",
302 "$ref": "../definitions.json#/error"
306 "description": "Hold not allowed",
308 "$ref": "../definitions.json#/error"
312 "description": "Hold not found",
314 "$ref": "../definitions.json#/error"
318 "description": "Internal server error",
320 "$ref": "../definitions.json#/error"
324 "description": "Under maintenance",
326 "$ref": "../definitions.json#/error"
330 "x-koha-authorization": {
332 "reserveforothers": "1"
337 "x-mojo-to": "Holds#delete",
338 "operationId": "deleteHold",
341 "$ref": "../parameters.json#/hold_id_pp"
344 "produces": ["application/json"],
347 "description": "Successful deletion",
353 "description": "Authentication required",
355 "$ref": "../definitions.json#/error"
359 "description": "Hold not allowed",
361 "$ref": "../definitions.json#/error"
365 "description": "Hold not found",
367 "$ref": "../definitions.json#/error"
371 "description": "Internal server error",
373 "$ref": "../definitions.json#/error"
377 "description": "Under maintenance",
379 "$ref": "../definitions.json#/error"
383 "x-koha-authorization": {
385 "reserveforothers": "1"