2 "/clubs/{club_id}/holds": {
4 "x-mojo-to": "Clubs::Holds#add",
5 "operationId": "addClubHold",
6 "tags": ["holds", "clubs"],
8 "$ref": "../parameters.json#/club_id_pp"
12 "description": "A JSON object containing informations about the new hold",
18 "description": "Internal biblio identifier",
19 "type": [ "integer", "null" ]
22 "description": "Internal item identifier",
23 "type": [ "integer", "null" ]
25 "pickup_library_id": {
26 "description": "Internal library identifier for the pickup library",
30 "description": "Hold end date",
31 "type": ["string", "null"],
35 "description": "Notes related to this hold",
36 "type": [ "string", "null" ]
39 "description": "Limit hold on one itemtype (ignored for item-level holds)",
40 "type": [ "string", "null" ]
42 "default_patron_home": {
43 "description": "For each patron, set pickup location to patron's home library if possible",
47 "required": [ "pickup_library_id" ]
51 "consumes": ["application/json"],
52 "produces": ["application/json"],
55 "description": "Created hold",
57 "$ref": "../definitions/club_hold.json"
61 "description": "Missing or wrong parameters",
63 "$ref": "../definitions.json#/error"
67 "description": "Authentication required",
69 "$ref": "../definitions.json#/error"
73 "description": "Hold not allowed",
75 "$ref": "../definitions.json#/error"
79 "description": "Hold not found",
81 "$ref": "../definitions.json#/error"
85 "description": "Hold not allowed",
87 "$ref": "../definitions.json#/error"
91 "description": "Internal server error",
93 "$ref": "../definitions.json#/error"
97 "description": "Under maintenance",
99 "$ref": "../definitions.json#/error"
103 "x-koha-authorization": {
105 "reserveforothers": "1"