2 /import_batch_profiles:
4 x-mojo-to: ImportBatchProfiles#list
5 operationId: listImportBatchProfiles
7 - batch_import_profiles
8 summary: List batch import profiles
12 description: Search on profile's name
15 - $ref: "../swagger.yaml#/parameters/match"
16 - $ref: "../swagger.yaml#/parameters/order_by"
17 - $ref: "../swagger.yaml#/parameters/page"
18 - $ref: "../swagger.yaml#/parameters/per_page"
19 - $ref: "../swagger.yaml#/parameters/q_param"
20 - $ref: "../swagger.yaml#/parameters/q_body"
21 - $ref: "../swagger.yaml#/parameters/q_header"
28 description: A list of import batch profiles
30 $ref: "../swagger.yaml#/definitions/import_batch_profiles"
32 description: Authentication required
34 $ref: "../swagger.yaml#/definitions/error"
36 description: Access forbidden
38 $ref: "../swagger.yaml#/definitions/error"
41 Internal server error. Possible `error_code` attribute values:
43 * `internal_server_error`
45 $ref: "../swagger.yaml#/definitions/error"
47 description: Under maintenance
49 $ref: "../swagger.yaml#/definitions/error"
52 tools: stage_marc_import
54 x-mojo-to: ImportBatchProfiles#add
55 operationId: addImportBatchProfiles
57 - batch_import_profiles
58 summary: Add batch import profile
62 description: A JSON object containing a import batch profile
68 description: name of this profile
71 description: the id of the match rule used (matchpoints.matcher_id)
76 description: the id of the marc modification template
81 description: how to handle duplicate records
86 description: how to handle records where no match is found
91 description: what to do with item records
96 description: should items be parsed
101 description: type of record in the batch
106 description: file encoding
111 description: marc format
116 description: any comments added when the file was uploaded
120 additionalProperties: false
127 description: Created Profile
129 $ref: "../swagger.yaml#/definitions/import_batch_profile"
131 description: Missing or wrong parameters
133 $ref: "../swagger.yaml#/definitions/error"
135 description: Authentication required
137 $ref: "../swagger.yaml#/definitions/error"
139 description: Hold not allowed
141 $ref: "../swagger.yaml#/definitions/error"
143 description: Borrower not found
145 $ref: "../swagger.yaml#/definitions/error"
148 Internal server error. Possible `error_code` attribute values:
150 * `internal_server_error`
152 $ref: "../swagger.yaml#/definitions/error"
154 description: Under maintenance
156 $ref: "../swagger.yaml#/definitions/error"
157 x-koha-authorization:
159 tools: stage_marc_import
160 "/import_batch_profiles/{import_batch_profile_id}":
162 x-mojo-to: ImportBatchProfiles#edit
163 operationId: editImportBatchProfiles
165 - batch_import_profiles
166 summary: Update batch import profile
168 - $ref: "../swagger.yaml#/parameters/import_batch_profile_id_pp"
171 description: A JSON object containing a import batch profile
177 description: name of this profile
180 description: the id of the match rule used (matchpoints.matcher_id)
185 description: the id of the marc modification template
190 description: how to handle duplicate records
195 description: how to handle records where no match is found
200 description: what to do with item records
205 description: should items be parsed
210 description: type of record in the batch
215 description: file encoding
220 description: marc format
225 description: any comments added when the file was uploaded
229 additionalProperties: false
236 description: Updated profile
238 $ref: "../swagger.yaml#/definitions/import_batch_profile"
240 description: Missing or wrong parameters
242 $ref: "../swagger.yaml#/definitions/error"
244 description: Authentication required
246 $ref: "../swagger.yaml#/definitions/error"
248 description: Hold not allowed
250 $ref: "../swagger.yaml#/definitions/error"
252 description: Borrower not found
254 $ref: "../swagger.yaml#/definitions/error"
257 Internal server error. Possible `error_code` attribute values:
259 * `internal_server_error`
261 $ref: "../swagger.yaml#/definitions/error"
263 description: Under maintenance
265 $ref: "../swagger.yaml#/definitions/error"
266 x-koha-authorization:
268 tools: stage_marc_import
270 x-mojo-to: ImportBatchProfiles#delete
271 operationId: deleteImportBatchProfiles
273 - batch_import_profiles
274 summary: Delete batch import profile
276 - $ref: "../swagger.yaml#/parameters/import_batch_profile_id_pp"
281 description: Profile deleted
283 description: Authentication required
285 $ref: "../swagger.yaml#/definitions/error"
287 description: Hold not allowed
289 $ref: "../swagger.yaml#/definitions/error"
291 description: Hold not found
293 $ref: "../swagger.yaml#/definitions/error"
296 Internal server error. Possible `error_code` attribute values:
298 * `internal_server_error`
300 $ref: "../swagger.yaml#/definitions/error"
302 description: Under maintenance
304 $ref: "../swagger.yaml#/definitions/error"
305 x-koha-authorization:
307 tools: stage_marc_import