4 "x-mojo-to": "Hold#list",
5 "operationId": "listHolds",
6 "tags": ["patrons", "holds"],
11 "description": "Internal reserve identifier",
15 "$ref": "../parameters.json#/borrowernumberQueryParam"
18 "name": "reservedate",
20 "description": "Reserve date",
24 "name": "biblionumber",
26 "description": "Internal biblio identifier",
32 "description": "Branch code",
36 "name": "notificationdate",
38 "description": "Notification date",
42 "name": "reminderdate",
44 "description": "Reminder date",
48 "name": "cancellationdate",
50 "description": "Cancellation date",
54 "name": "reservenotes",
56 "description": "Reserve notes",
62 "description": "Priority",
68 "description": "Found status",
74 "description": "Time of latest update",
80 "description": "Internal item identifier",
84 "name": "waitingdate",
86 "description": "Date the item was marked as waiting for the patron",
90 "name": "expirationdate",
92 "description": "Date the hold expires",
96 "name": "lowestPriority",
98 "description": "Lowest priority",
104 "description": "Suspended",
108 "name": "suspend_until",
110 "description": "Suspended until",
114 "produces": ["application/json"],
117 "description": "A list of holds",
119 "$ref": "../definitions.json#/holds"
123 "description": "Authentication required",
125 "$ref": "../definitions.json#/error"
129 "description": "Hold not allowed",
131 "$ref": "../definitions.json#/error"
135 "description": "Borrower not found",
137 "$ref": "../definitions.json#/error"
141 "description": "Internal server error",
143 "$ref": "../definitions.json#/error"
147 "description": "Under maintenance",
149 "$ref": "../definitions.json#/error"
153 "x-koha-authorization": {
155 "allow-guarantor": true,
157 "borrowers": "edit_borrowers"
162 "x-mojo-to": "Hold#add",
163 "operationId": "addHold",
164 "tags": ["patrons", "holds"],
168 "description": "A JSON object containing informations about the new hold",
174 "description": "Borrower internal identifier",
178 "description": "Biblio internal identifier",
182 "description": "Item internal identifier",
186 "description": "Pickup location",
190 "description": "Hold end date",
195 "description": "Limit hold on one itemtype (ignored for item-level holds)",
202 "consumes": ["application/json"],
203 "produces": ["application/json"],
206 "description": "Created hold",
208 "$ref": "../definitions.json#/hold"
212 "description": "Missing or wrong parameters",
214 "$ref": "../definitions.json#/error"
218 "description": "Authentication required",
220 "$ref": "../definitions.json#/error"
224 "description": "Hold not allowed",
226 "$ref": "../definitions.json#/error"
230 "description": "Borrower not found",
232 "$ref": "../definitions.json#/error"
236 "description": "Internal server error",
238 "$ref": "../definitions.json#/error"
242 "description": "Under maintenance",
244 "$ref": "../definitions.json#/error"
248 "x-koha-authorization": {
251 "reserveforothers": "1"
256 "/holds/{reserve_id}": {
258 "x-mojo-to": "Hold#edit",
259 "operationId": "editHold",
262 "$ref": "../parameters.json#/holdIdPathParam"
266 "description": "A JSON object containing fields to modify",
272 "description": "Position in waiting queue",
277 "description": "Pickup location",
281 "description": "Suspend until",
289 "consumes": ["application/json"],
290 "produces": ["application/json"],
293 "description": "Updated hold",
295 "$ref": "../definitions.json#/hold"
299 "description": "Missing or wrong parameters",
301 "$ref": "../definitions.json#/error"
305 "description": "Authentication required",
307 "$ref": "../definitions.json#/error"
311 "description": "Hold not allowed",
313 "$ref": "../definitions.json#/error"
317 "description": "Hold not found",
319 "$ref": "../definitions.json#/error"
323 "description": "Internal server error",
325 "$ref": "../definitions.json#/error"
329 "description": "Under maintenance",
331 "$ref": "../definitions.json#/error"
335 "x-koha-authorization": {
337 "allow-guarantor": true,
339 "reserveforothers": "1"
344 "x-mojo-to": "Hold#delete",
345 "operationId": "deleteHold",
348 "$ref": "../parameters.json#/holdIdPathParam"
351 "produces": ["application/json"],
354 "description": "Successful deletion",
360 "description": "Authentication required",
362 "$ref": "../definitions.json#/error"
366 "description": "Hold not allowed",
368 "$ref": "../definitions.json#/error"
372 "description": "Hold not found",
374 "$ref": "../definitions.json#/error"
378 "description": "Internal server error",
380 "$ref": "../definitions.json#/error"
384 "description": "Under maintenance",
386 "$ref": "../definitions.json#/error"
390 "x-koha-authorization": {
392 "reserveforothers": "1"