2 "/import_batch_profiles": {
4 "x-mojo-to": "ImportBatchProfiles#list",
5 "operationId": "listImportBatchProfiles",
13 "description": "Search on profile's name",
18 "$ref": "../parameters.json#/match"
21 "$ref": "../parameters.json#/order_by"
24 "$ref": "../parameters.json#/page"
27 "$ref": "../parameters.json#/per_page"
38 "description": "A list of import batch profiles",
40 "$ref": "../definitions.json#/import_batch_profiles"
44 "description": "Authentication required",
46 "$ref": "../definitions.json#/error"
50 "description": "Access forbidden",
52 "$ref": "../definitions.json#/error"
56 "description": "Internal server error",
58 "$ref": "../definitions.json#/error"
62 "description": "Under maintenance",
64 "$ref": "../definitions.json#/error"
68 "x-koha-authorization": {
70 "tools": "stage_marc_import"
75 "x-mojo-to": "ImportBatchProfiles#add",
76 "operationId": "addImportBatchProfiles",
84 "description": "A JSON object containing a import batch profile",
90 "description": "name of this profile",
94 "description": "the id of the match rule used (matchpoints.matcher_id)",
95 "type": ["integer", "null"]
98 "description": "the id of the marc modification template",
99 "type": ["integer", "null"]
102 "description": "how to handle duplicate records",
103 "type": ["string", "null"]
106 "description": "how to handle records where no match is found",
107 "type": ["string", "null"]
110 "description": "what to do with item records",
111 "type": ["string", "null"]
114 "description": "should items be parsed",
115 "type": ["boolean", "null"]
118 "description": "type of record in the batch",
119 "type": ["string", "null"]
122 "description": "file encoding",
123 "type": ["string", "null"]
126 "description": "marc format",
127 "type": ["string", "null"]
130 "description": "any comments added when the file was uploaded",
131 "type": ["string", "null"]
137 "consumes": ["application/json"],
138 "produces": ["application/json"],
141 "description": "Created Profile",
143 "$ref": "../definitions.json#/import_batch_profile"
147 "description": "Missing or wrong parameters",
149 "$ref": "../definitions.json#/error"
153 "description": "Authentication required",
155 "$ref": "../definitions.json#/error"
159 "description": "Hold not allowed",
161 "$ref": "../definitions.json#/error"
165 "description": "Borrower not found",
167 "$ref": "../definitions.json#/error"
171 "description": "Internal server error",
173 "$ref": "../definitions.json#/error"
177 "description": "Under maintenance",
179 "$ref": "../definitions.json#/error"
183 "x-koha-authorization": {
185 "tools": "stage_marc_import"
190 "/import_batch_profiles/{import_batch_profile_id}": {
192 "x-mojo-to": "ImportBatchProfiles#edit",
193 "operationId": "editImportBatchProfiles",
195 "ImportBatchProfiles"
199 "$ref": "../parameters.json#/import_batch_profile_id_pp"
204 "description": "A JSON object containing a import batch profile",
210 "description": "name of this profile",
214 "description": "the id of the match rule used (matchpoints.matcher_id)",
215 "type": ["integer", "null"]
218 "description": "the id of the marc modification template",
219 "type": ["integer", "null"]
222 "description": "how to handle duplicate records",
223 "type": ["string", "null"]
226 "description": "how to handle records where no match is found",
227 "type": ["string", "null"]
230 "description": "what to do with item records",
231 "type": ["string", "null"]
234 "description": "should items be parsed",
235 "type": ["boolean", "null"]
238 "description": "type of record in the batch",
239 "type": ["string", "null"]
242 "description": "file encoding",
243 "type": ["string", "null"]
246 "description": "marc format",
247 "type": ["string", "null"]
250 "description": "any comments added when the file was uploaded",
251 "type": ["string", "null"]
257 "consumes": ["application/json"],
258 "produces": ["application/json"],
261 "description": "Updated profile",
263 "$ref": "../definitions.json#/import_batch_profile"
267 "description": "Missing or wrong parameters",
269 "$ref": "../definitions.json#/error"
273 "description": "Authentication required",
275 "$ref": "../definitions.json#/error"
279 "description": "Hold not allowed",
281 "$ref": "../definitions.json#/error"
285 "description": "Borrower not found",
287 "$ref": "../definitions.json#/error"
291 "description": "Internal server error",
293 "$ref": "../definitions.json#/error"
297 "description": "Under maintenance",
299 "$ref": "../definitions.json#/error"
303 "x-koha-authorization": {
305 "tools": "stage_marc_import"
310 "x-mojo-to": "ImportBatchProfiles#delete",
311 "operationId": "deleteImportBatchProfiles",
312 "tags": ["ImportBatchProfiles"],
314 "$ref": "../parameters.json#/import_batch_profile_id_pp"
317 "produces": ["application/json"],
320 "description": "Profile deleted"
323 "description": "Authentication required",
325 "$ref": "../definitions.json#/error"
329 "description": "Hold not allowed",
331 "$ref": "../definitions.json#/error"
335 "description": "Hold not found",
337 "$ref": "../definitions.json#/error"
341 "description": "Internal server error",
343 "$ref": "../definitions.json#/error"
347 "description": "Under maintenance",
349 "$ref": "../definitions.json#/error"
353 "x-koha-authorization": {
355 "tools": "stage_marc_import"