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,
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",
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": {
247 "reserveforothers": "1"
252 "/holds/{reserve_id}": {
254 "x-mojo-to": "Hold#edit",
255 "operationId": "editHold",
258 "$ref": "../parameters.json#/holdIdPathParam"
262 "description": "A JSON object containing fields to modify",
268 "description": "Position in waiting queue",
273 "description": "Pickup location",
277 "description": "Suspend until",
285 "consumes": ["application/json"],
286 "produces": ["application/json"],
289 "description": "Updated hold",
291 "$ref": "../definitions.json#/hold"
295 "description": "Missing or wrong parameters",
297 "$ref": "../definitions.json#/error"
301 "description": "Authentication required",
303 "$ref": "../definitions.json#/error"
307 "description": "Hold not allowed",
309 "$ref": "../definitions.json#/error"
313 "description": "Hold not found",
315 "$ref": "../definitions.json#/error"
319 "description": "Internal server error",
321 "$ref": "../definitions.json#/error"
325 "description": "Under maintenance",
327 "$ref": "../definitions.json#/error"
331 "x-koha-authorization": {
333 "allow-guarantor": true,
335 "reserveforothers": "1"
340 "x-mojo-to": "Hold#delete",
341 "operationId": "deleteHold",
344 "$ref": "../parameters.json#/holdIdPathParam"
347 "produces": ["application/json"],
350 "description": "Successful deletion",
356 "description": "Authentication required",
358 "$ref": "../definitions.json#/error"
362 "description": "Hold not allowed",
364 "$ref": "../definitions.json#/error"
368 "description": "Hold not found",
370 "$ref": "../definitions.json#/error"
374 "description": "Internal server error",
376 "$ref": "../definitions.json#/error"
380 "description": "Under maintenance",
382 "$ref": "../definitions.json#/error"
386 "x-koha-authorization": {
388 "reserveforothers": "1"