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"]
134 "additionalProperties": false
138 "consumes": ["application/json"],
139 "produces": ["application/json"],
142 "description": "Created Profile",
144 "$ref": "../definitions.json#/import_batch_profile"
148 "description": "Missing or wrong parameters",
150 "$ref": "../definitions.json#/error"
154 "description": "Authentication required",
156 "$ref": "../definitions.json#/error"
160 "description": "Hold not allowed",
162 "$ref": "../definitions.json#/error"
166 "description": "Borrower not found",
168 "$ref": "../definitions.json#/error"
172 "description": "Internal server error",
174 "$ref": "../definitions.json#/error"
178 "description": "Under maintenance",
180 "$ref": "../definitions.json#/error"
184 "x-koha-authorization": {
186 "tools": "stage_marc_import"
191 "/import_batch_profiles/{import_batch_profile_id}": {
193 "x-mojo-to": "ImportBatchProfiles#edit",
194 "operationId": "editImportBatchProfiles",
196 "ImportBatchProfiles"
200 "$ref": "../parameters.json#/import_batch_profile_id_pp"
205 "description": "A JSON object containing a import batch profile",
211 "description": "name of this profile",
215 "description": "the id of the match rule used (matchpoints.matcher_id)",
216 "type": ["integer", "null"]
219 "description": "the id of the marc modification template",
220 "type": ["integer", "null"]
223 "description": "how to handle duplicate records",
224 "type": ["string", "null"]
227 "description": "how to handle records where no match is found",
228 "type": ["string", "null"]
231 "description": "what to do with item records",
232 "type": ["string", "null"]
235 "description": "should items be parsed",
236 "type": ["boolean", "null"]
239 "description": "type of record in the batch",
240 "type": ["string", "null"]
243 "description": "file encoding",
244 "type": ["string", "null"]
247 "description": "marc format",
248 "type": ["string", "null"]
251 "description": "any comments added when the file was uploaded",
252 "type": ["string", "null"]
255 "additionalProperties": false
259 "consumes": ["application/json"],
260 "produces": ["application/json"],
263 "description": "Updated profile",
265 "$ref": "../definitions.json#/import_batch_profile"
269 "description": "Missing or wrong parameters",
271 "$ref": "../definitions.json#/error"
275 "description": "Authentication required",
277 "$ref": "../definitions.json#/error"
281 "description": "Hold not allowed",
283 "$ref": "../definitions.json#/error"
287 "description": "Borrower not found",
289 "$ref": "../definitions.json#/error"
293 "description": "Internal server error",
295 "$ref": "../definitions.json#/error"
299 "description": "Under maintenance",
301 "$ref": "../definitions.json#/error"
305 "x-koha-authorization": {
307 "tools": "stage_marc_import"
312 "x-mojo-to": "ImportBatchProfiles#delete",
313 "operationId": "deleteImportBatchProfiles",
314 "tags": ["ImportBatchProfiles"],
316 "$ref": "../parameters.json#/import_batch_profile_id_pp"
319 "produces": ["application/json"],
322 "description": "Profile deleted"
325 "description": "Authentication required",
327 "$ref": "../definitions.json#/error"
331 "description": "Hold not allowed",
333 "$ref": "../definitions.json#/error"
337 "description": "Hold not found",
339 "$ref": "../definitions.json#/error"
343 "description": "Internal server error",
345 "$ref": "../definitions.json#/error"
349 "description": "Under maintenance",
351 "$ref": "../definitions.json#/error"
355 "x-koha-authorization": {
357 "tools": "stage_marc_import"