4 "operationId": "listHolds",
5 "tags": ["patrons", "holds"],
10 "description": "Internal reserve identifier",
14 "$ref": "../parameters.json#/borrowernumberQueryParam"
17 "name": "reservedate",
19 "description": "Reserve date",
23 "name": "biblionumber",
25 "description": "Internal biblio identifier",
31 "description": "Branch code",
35 "name": "notificationdate",
37 "description": "Notification date",
41 "name": "reminderdate",
43 "description": "Reminder date",
47 "name": "cancellationdate",
49 "description": "Cancellation date",
53 "name": "reservenotes",
55 "description": "Reserve notes",
61 "description": "Priority",
67 "description": "Found status",
73 "description": "Time of latest update",
79 "description": "Internal item identifier",
83 "name": "waitingdate",
85 "description": "Date the item was marked as waiting for the patron",
89 "name": "expirationdate",
91 "description": "Date the hold expires",
95 "name": "lowestPriority",
97 "description": "Lowest priority",
103 "description": "Suspended",
107 "name": "suspend_until",
109 "description": "Suspended until",
113 "produces": ["application/json"],
116 "description": "A list of holds",
118 "$ref": "../definitions.json#/holds"
122 "description": "Borrower not found",
124 "$ref": "../definitions.json#/error"
128 "x-koha-authorization": {
130 "allow-guarantor": true,
137 "operationId": "addHold",
138 "tags": ["patrons", "holds"],
142 "description": "A JSON object containing informations about the new hold",
148 "description": "Borrower internal identifier",
152 "description": "Biblio internal identifier",
156 "description": "Item internal identifier",
160 "description": "Pickup location",
164 "description": "Hold end date",
172 "consumes": ["application/json"],
173 "produces": ["application/json"],
176 "description": "Created hold",
178 "$ref": "../definitions.json#/hold"
182 "description": "Missing or wrong parameters",
184 "$ref": "../definitions.json#/error"
188 "description": "Hold not allowed",
190 "$ref": "../definitions.json#/error"
194 "description": "Borrower not found",
196 "$ref": "../definitions.json#/error"
200 "description": "Internal error",
202 "$ref": "../definitions.json#/error"
206 "x-koha-authorization": {
209 "reserveforothers": "1"
214 "/holds/{reserve_id}": {
216 "operationId": "editHold",
219 "$ref": "../parameters.json#/holdIdPathParam"
223 "description": "A JSON object containing fields to modify",
229 "description": "Position in waiting queue",
234 "description": "Pickup location",
238 "description": "Suspend until",
246 "consumes": ["application/json"],
247 "produces": ["application/json"],
250 "description": "Updated hold",
252 "$ref": "../definitions.json#/hold"
256 "description": "Missing or wrong parameters",
258 "$ref": "../definitions.json#/error"
262 "description": "Hold not found",
264 "$ref": "../definitions.json#/error"
268 "x-koha-authorization": {
270 "allow-guarantor": true,
272 "reserveforothers": "1"
277 "operationId": "deleteHold",
280 "$ref": "../parameters.json#/holdIdPathParam"
283 "produces": ["application/json"],
286 "description": "Successful deletion",
292 "description": "Hold not found",
294 "$ref": "../definitions.json#/error"
298 "x-koha-authorization": {
300 "reserveforothers": "1"