Bug 23019: Add profiles to stage-import-batch and magnage-import-batch pages
[koha.git] / api / v1 / swagger / definitions / import-batch-profile.json
1 {
2   "type": "object",
3   "properties": {
4     "id_profile": {
5       "type": "integer",
6       "description": "Internal profile identifier"
7     },
8     "name": {
9       "description": "name of this profile",
10       "type": "string"
11     },
12     "matcher_id": {
13       "description": "the id of the match rule used (matchpoints.matcher_id)",
14       "type": ["integer", "null"]
15     },
16     "template_id": {
17       "description": "the id of the marc modification template",
18       "type": ["integer", "null"]
19     },
20     "overlay_action": {
21       "description": "how to handle duplicate records",
22       "type": ["string", "null"]
23     },
24     "nomatch_action": {
25       "description": "how to handle records where no match is found",
26       "type": ["string", "null"]
27     },
28     "item_action": {
29       "description": "what to do with item records",
30       "type": ["string", "null"]
31     },
32     "parse_items": {
33       "description": "should items be parsed",
34       "type": ["boolean", "null"]
35     },
36     "record_type": {
37       "description": "type of record in the batch",
38       "type": ["string", "null"]
39     },
40     "encoding": {
41       "description": "file encoding",
42       "type": ["string", "null"]
43     },
44     "format": {
45       "description": "marc format",
46       "type": ["string", "null"]
47     },
48     "comments": {
49       "description": "any comments added when the file was uploaded",
50       "type": ["string", "null"]
51     }
52   }
53 }