4 "x-mojo-to": "Hold#list",
5 "operationId": "listHolds",
6 "tags": ["patrons", "holds"],
11 "description": "Internal reserve identifier",
15 "name": "borrowernumber",
17 "description": "Internal patron identifier",
21 "name": "reservedate",
23 "description": "Reserve date",
27 "name": "biblionumber",
29 "description": "Internal biblio identifier",
35 "description": "Branch code",
39 "name": "notificationdate",
41 "description": "Notification date",
45 "name": "reminderdate",
47 "description": "Reminder date",
51 "name": "cancellationdate",
53 "description": "Cancellation date",
57 "name": "reservenotes",
59 "description": "Reserve notes",
65 "description": "Priority",
71 "description": "Found status",
77 "description": "Time of latest update",
83 "description": "Internal item identifier",
87 "name": "waitingdate",
89 "description": "Date the item was marked as waiting for the patron",
93 "name": "expirationdate",
95 "description": "Date the hold expires",
99 "name": "lowestPriority",
101 "description": "Lowest priority",
107 "description": "Suspended",
111 "name": "suspend_until",
113 "description": "Suspended until",
117 "produces": ["application/json"],
120 "description": "A list of holds",
122 "$ref": "../definitions.json#/holds"
126 "description": "Authentication required",
128 "$ref": "../definitions.json#/error"
132 "description": "Hold not allowed",
134 "$ref": "../definitions.json#/error"
138 "description": "Borrower not found",
140 "$ref": "../definitions.json#/error"
144 "description": "Internal server error",
146 "$ref": "../definitions.json#/error"
150 "description": "Under maintenance",
152 "$ref": "../definitions.json#/error"
156 "x-koha-authorization": {
158 "allow-guarantor": true,
160 "borrowers": "edit_borrowers"
165 "x-mojo-to": "Hold#add",
166 "operationId": "addHold",
167 "tags": ["patrons", "holds"],
171 "description": "A JSON object containing informations about the new hold",
177 "description": "Internal patron identifier",
181 "description": "Biblio internal identifier",
185 "description": "Item internal identifier",
189 "description": "Pickup location",
193 "description": "Hold end date",
198 "description": "Limit hold on one itemtype (ignored for item-level holds)",
205 "consumes": ["application/json"],
206 "produces": ["application/json"],
209 "description": "Created hold",
211 "$ref": "../definitions.json#/hold"
215 "description": "Missing or wrong parameters",
217 "$ref": "../definitions.json#/error"
221 "description": "Authentication required",
223 "$ref": "../definitions.json#/error"
227 "description": "Hold not allowed",
229 "$ref": "../definitions.json#/error"
233 "description": "Borrower not found",
235 "$ref": "../definitions.json#/error"
239 "description": "Internal server error",
241 "$ref": "../definitions.json#/error"
245 "description": "Under maintenance",
247 "$ref": "../definitions.json#/error"
251 "x-koha-authorization": {
254 "reserveforothers": "1"
259 "/holds/{reserve_id}": {
261 "x-mojo-to": "Hold#edit",
262 "operationId": "editHold",
265 "$ref": "../parameters.json#/holdIdPathParam"
269 "description": "A JSON object containing fields to modify",
275 "description": "Position in waiting queue",
280 "description": "Pickup location",
284 "description": "Suspend until",
292 "consumes": ["application/json"],
293 "produces": ["application/json"],
296 "description": "Updated hold",
298 "$ref": "../definitions.json#/hold"
302 "description": "Missing or wrong parameters",
304 "$ref": "../definitions.json#/error"
308 "description": "Authentication required",
310 "$ref": "../definitions.json#/error"
314 "description": "Hold not allowed",
316 "$ref": "../definitions.json#/error"
320 "description": "Hold not found",
322 "$ref": "../definitions.json#/error"
326 "description": "Internal server error",
328 "$ref": "../definitions.json#/error"
332 "description": "Under maintenance",
334 "$ref": "../definitions.json#/error"
338 "x-koha-authorization": {
340 "allow-guarantor": true,
342 "reserveforothers": "1"
347 "x-mojo-to": "Hold#delete",
348 "operationId": "deleteHold",
351 "$ref": "../parameters.json#/holdIdPathParam"
354 "produces": ["application/json"],
357 "description": "Successful deletion",
363 "description": "Authentication required",
365 "$ref": "../definitions.json#/error"
369 "description": "Hold not allowed",
371 "$ref": "../definitions.json#/error"
375 "description": "Hold not found",
377 "$ref": "../definitions.json#/error"
381 "description": "Internal server error",
383 "$ref": "../definitions.json#/error"
387 "description": "Under maintenance",
389 "$ref": "../definitions.json#/error"
393 "x-koha-authorization": {
395 "reserveforothers": "1"