-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathinbound.yaml
914 lines (914 loc) · 32.8 KB
/
inbound.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
openapi: 3.0.0
info:
title: Import API
version: 2.1.0
description:
The Medallia Import API enables import of data to Medallia
Experience Cloud through a Data Import or Custom Import.
termsOfService: https://medallia.com/about/legal/terms/api
servers:
- url: 'https://{api-gateway-hostname}'
variables:
api-gateway-hostname:
default: instance-tenant.apis.medallia.com
description:
The Medallia Experience Cloud hostname used to access
Medallia Reporting
paths:
/inbound/v1/{importer-name}:
post:
tags:
- Import
description: Performs a data import
operationId: importDataV1
parameters:
- $ref: "#/components/parameters/feed-name"
requestBody:
description: The data to be imported
required: true
content:
application/json:
schema:
oneOf:
- type: object
additionalProperties:
type: string
example:
transaction_date: 2021-03-23T13:15:37-07:00
email: [email protected]
- type: array
items:
type: object
additionalProperties:
type: string
example:
transaction_date: 2021-03-23T13:15:37-07:00
email: [email protected]
text/csv:
schema:
type: string
text/xml:
schema:
oneOf:
- type: object
additionalProperties:
type: string
example:
transaction_date: 2021-03-23T13:15:37-07:00
email: [email protected]
- type: array
items:
type: object
additionalProperties:
type: string
example:
transaction_date: 2021-03-23T13:15:37-07:00
email: [email protected]
responses:
200:
description:
The response to a data import that is processed synchronously
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
type: object
required:
- records
- duplicates
- rejects
properties:
records:
type: integer
description: The number of records processed
duplicates:
type: integer
description:
The number of records found to match an existing
record in the system
rejects:
type: integer
description:
The number of records that could not be processed
for some reason
202:
description:
The response to a data import that is processed asynchronously
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
401:
description: Unauthorized
403:
description: Forbidden
412:
description: Precondition failed
500:
description: Internal server error
security:
- mecOauth: []
/inbound/v2:
get:
tags:
- Import
description:
Discover all available endpoints to import data. This endpoint is available in
Medallia Experience Cloud 2023 Fall Release as a generally available beta feature.
operationId: introspectImportAPICollection
responses:
200:
description: Lists all the available endpoints
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/TruncatedOpenAPIObject'
application/yaml:
schema:
$ref: '#/components/schemas/TruncatedOpenAPIObject'
401:
description: Unauthorized
403:
description: Forbidden
404:
description: Object not found
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
500:
description: Internal server error
security:
- mecOauth: []
/inbound/v2/{importer-name}:
get:
tags:
- Import
description:
Inspect an importer to uncover input data requirements. This endpoint is
available in Medallia Experience Cloud 2023 Fall Release as a generally
available beta feature.
operationId: introspectImportAPIEndpoint
parameters:
- $ref: "#/components/parameters/feed-name"
responses:
200:
description: Retrieve the full Open API 3.0.1 spec of an endpoint
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
description: Content matches OpenAPI Object as per https://swagger.io/specification/
application/yaml:
schema:
description: Content matches OpenAPI Object as per https://swagger.io/specification/
401:
description: Unauthorized
403:
description: Forbidden
404:
description: Object not found
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
500:
description: Internal server error
security:
- mecOauth: []
/inbound/v2/async/{importer-name}:
post:
tags:
- Import
description:
Performs an asynchronous data import, returning the ID of
the feed file created so processing status can be queried
later. This endpoint is only available in Medallia Experience
Cloud 2023 Summer Release as an opt-in feature. Reach out
to your Medallia contact to enable this API feature as part
of the Early Adopter Program.
operationId: importDataV2
parameters:
- $ref: "#/components/parameters/feed-name"
requestBody:
description: The data to be imported
required: true
content:
application/json:
schema:
oneOf:
- type: object
additionalProperties:
type: string
example:
transaction_date: 2021-03-23T13:15:37-07:00
email: [email protected]
- type: array
items:
type: object
additionalProperties:
type: string
example:
transaction_date: 2021-03-23T13:15:37-07:00
email: [email protected]
text/csv:
schema:
type: string
text/xml:
schema:
oneOf:
- type: object
additionalProperties:
type: string
example:
transaction_date: 2021-03-23T13:15:37-07:00
email: [email protected]
- type: array
items:
type: object
additionalProperties:
type: string
example:
transaction_date: 2021-03-23T13:15:37-07:00
email: [email protected]
responses:
202:
description: The response to a data import that is processed asynchronously
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: "#/components/schemas/AsyncIngestionResponse"
401:
description: Unauthorized
403:
description: Forbidden
404:
description: Object not found
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorMessage"
405:
description:
The feed resource configuration is not compatible with this API
resource. Please change the configuration of your feed resource.
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorMessage"
412:
description: Precondition failed
413:
description: Payload too large
500:
description: Internal server error
security:
- mecOauth: []
/inbound/v2/feedfiles/{id}:
parameters:
- $ref: "#/components/parameters/feed-file-id"
get:
tags:
- Feed File
description:
Provides the summary statistics of a feed file import.
This endpoint is only available in Medallia Experience
Cloud 2023 Summer Release as an opt-in feature. Reach
out to your Medallia contact to enable this API feature
as part of the Early Adopter Program.
operationId: getSummaryFeedFileResults
responses:
200:
description: Successfully obtained the feed file statistics
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: "#/components/schemas/FeedFileSummary"
401:
description: Unauthorized
403:
description: Forbidden
404:
description: Object not found.
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorMessage"
500:
description: Internal server error
security:
- mecOauth: []
/inbound/v2/feedfiles/{id}/detailed-results:
parameters:
- $ref: "#/components/parameters/feed-file-id"
get:
description:
Provides the detailed processing results of a Feed File.
This endpoint is only available in Medallia Experience
Cloud 2023 Summer Release as an opt-in feature. Reach
out to your Medallia contact to enable this API feature
as part of the Early Adopter Program.
tags:
- Feed File
operationId: getDetailedFeedFileResults
responses:
200:
description: Successfully obtained the detailed results.
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: "#/components/schemas/DetailedResults"
400:
description: Failed to obtain the detailed results.
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorMessage"
401:
description: Unauthorized
403:
description: Forbidden
404:
description: Object not found.
headers:
X-RateLimit-Limit-day:
$ref: '#/components/headers/X-RateLimit-Limit-day'
X-RateLimit-Remaining-day:
$ref: '#/components/headers/X-RateLimit-Remaining-day'
X-RateLimit-Limit-second:
$ref: '#/components/headers/X-RateLimit-Limit-second'
X-RateLimit-Remaining-second:
$ref: '#/components/headers/X-RateLimit-Remaining-second'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Medallia-Rpc-Request-Id:
$ref: '#/components/headers/X-Medallia-Rpc-Request-Id'
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorMessage"
500:
description: Internal server error
security:
- mecOauth: []
components:
parameters:
feed-name:
name: importer-name
in: path
description: The name of the importer
required: true
schema:
type: string
format: identifier
feed-file-id:
name: id
in: path
description: The identifier which represents an asynchronous data import known as a feed file
required: true
schema:
type: string
format: uuid
headers:
X-RateLimit-Limit-day:
description: The number of requests allowed in total in a 24-hour period. Deprecated as of Sept. 2022 in favor of X-RateLimit-Limit.
schema:
type: integer
example: 10000
deprecated: true
X-RateLimit-Remaining-day:
description: The number of requests available to make in a 24-hour period. Deprecated as of Sept. 2022 in favor of X-RateLimit-Remaining.
schema:
type: integer
example: 10000
deprecated: true
X-RateLimit-Limit-second:
description: The number of requests allowed in total in a 1-second period. Deprecated as of Sept. 2022 in favor of X-RateLimit-Limit.
schema:
type: integer
example: 10
deprecated: true
X-RateLimit-Remaining-second:
description: The number of requests available to make in a 1-second period. Deprecated as of Sept. 2022 in favor of X-RateLimit-Remaining.
schema:
type: integer
example: 10
deprecated: true
X-RateLimit-Limit:
description:
Indicates the request quota closest to reaching its limit
amongst all available quotas. Follows the semantics of
[IETF draft-polli-ratelimit-headers](https://datatracker.ietf.org/doc/html/draft-polli-ratelimit-headers).
schema:
type: string
example: 10, 10;w=1, 100;w=86400
X-RateLimit-Remaining:
description:
Indicates the number of requests remaining in the quota that is
closest to expiring (as indicated by `X-RateLimit-Limit`).
Follows the semantics of
[IETF draft-polli-ratelimit-headers](https://datatracker.ietf.org/doc/html/draft-polli-ratelimit-headers).
schema:
type: integer
example: 10
X-RateLimit-Reset:
description:
Indicates the number of seconds remaining until the quota
resets. Follows the semantics of
[IETF draft-polli-ratelimit-headers](https://datatracker.ietf.org/doc/html/draft-polli-ratelimit-headers).
schema:
type: integer
example: 10
X-Medallia-Rpc-Request-Id:
description: The request ID, used by Medallia support for troubleshooting
schema:
type: string
format: identifier
example: 94615edd-d9d0-4921-8b3e-60615b3d3431
schemas:
TruncatedOpenAPIObject:
type: object
description: A truncated Open API object to list the basic information of all available Import API endpoints
required:
- openapi
- info
- servers
- paths
properties:
openapi:
type: string
info:
type: object
properties:
title:
description: Hardcoded to Import API
type: string
version:
type: string
servers:
type: array
items:
type: object
properties:
url:
type: string
format: url
paths:
type: object
additionalProperties:
description: Describes an available Import API path to post data to
type: object
additionalProperties:
description: Displays the available methods to interact with that API path
type: object
properties:
summary:
type: string
description:
type: string
example:
{
"openapi": "3.0.1",
"info": {
"title": "Import API",
"version": "1.0.0"
},
"servers": [
{
"url": "https://example.apis.qa.den.medallia.com"
}
],
"paths": {
"/inbound/v2/async/active_b2b_onboarding_invitation": {
"post": {
"summary": "active_b2b_onboarding_invitation",
"description": "This web feed is for the client to send Medallia invitation data for the B2B Onboarding program ON ACTIVE."
}
},
"/inbound/v2/async/active_b2b_org": {
"post": {
"summary": "active_b2b_org",
"description": "This web feed is for the client to send Medallia org hierarchy data for the B2B program WITH ACTIVE"
}
}
}
}
AsyncIngestionResponse:
type: object
description: Confirmation that the asynchronous file processing request has been queued for processing.
required:
- feed_file_id
properties:
feed_file_id:
description: Feed file identifier.
type: string
format: uuid
FeedFileSummary:
description: Summary stats for a feed file
type: object
required:
- id
- status
properties:
id:
description: Feed file identifier.
type: string
format: uuid
status:
description: The current feed file status.
type: string
enum:
- QUEUED
- PROCESSING
- CANCELLED
- ERROR
- COMPLETED
- COMPLETED_PENDING_RESULTS
- COMPLETED_RESULTS_READY
- COMPLETED_RESULTS_UNAVAILABLE
stats:
description: Information about a processed feed file
type: object
required:
- creation_date
- processing_mode
properties:
records:
description: Aggregate record stats
type: object
required:
- input_count
properties:
input_count:
description: Total input record count
type: integer
success_count:
description: Success record count
type: integer
discarded_count:
description: Discarded record count
type: integer
duplicated_count:
description: Duplicate record count
type: integer
creation_date:
description: Job creation time (if available)
type: string
format: date-time
processing_start_date:
description: Processing start time (if available)
type: string
format: date-time
processing_end_date:
description: Processing end time (if available)
type: string
format: date-time
processing_mode:
description: The feed file processing mode used for the job
type: string
enum:
- PRETEND
- ACTIVE
processing_error_description:
description: Processing error description. If available
type: string
DetailedResults:
type: object
description: Detailed results of a processed FeedFile.
properties:
processing_results:
type: array
items:
$ref: "#/components/schemas/ProcessingResult"
input_to_field_mappings:
type: object
description: The fields that the input columns are being mapped to.
additionalProperties:
type: array
items:
type: string
processing_error_description:
description: Processing error description. If available
type: string
ProcessingResult:
type: object
description: Processing results of an entity type specified in the importer schema
required:
- entity_name
properties:
entity_name:
type: string
description: Type of entity imported such as record, unit, account, etc.
example: record
successful_results:
type: array
items:
$ref: "#/components/schemas/SuccessfulProcessedEntryResult"
discarded_results:
type: array
items:
$ref: "#/components/schemas/DiscardedResult"
SuccessfulProcessedEntryResult:
type: object
description: The result of a successfully processed entry.
required:
- input_position
- result
- has_duplicate_record_info
- field_values
properties:
input_position:
type: integer
description:
The position of the record in the input array of the import request.
example: 1
result:
type: string
description: The summary result.
example: Selected for sampling
has_duplicate_record_info:
type: boolean
description:
Denotes if an entity is updated and at least one field on the entity
contains duplicate information provided in the import request
field_values:
type: object
additionalProperties:
$ref: "#/components/schemas/FieldValue"
FieldValue:
type: object
description:
The detailed changes for a field value set or updated from the input
required:
- current_content
- value_modified
- dup_checking
properties:
modified_content:
type: string
description:
When a field value is updated, this field contains the content that
was modified before the import processing
current_content:
type: string
description:
The current value of the field after the import processing
value_modified:
type: boolean
description:
True if the value was modified
dup_checking:
type: boolean
description:
True if the field is being used as part of a unique index
DiscardedResult:
type: object
description: The result of a discarded entry
required:
- input_position
- input_values
- issues
properties:
input_position:
type: integer
description:
The position of the record in the input array of the import request
example: 1
input_values:
type: object
description:
The raw input of the values that were provided in the import request
additionalProperties:
type: string
example:
transaction_date: 2021-03-23T13:15:37-07:00
email: [email protected]
issues:
type: array
items:
$ref: "#/components/schemas/DiscardedResultIssue"
DiscardedResultIssue:
type: object
required:
- consequence
- explanation
- detail
- cause
properties:
consequence:
type: string
description: The consequence of the issue.
example: Record discarded
explanation:
type: string
description: The explanation of the issue.
example: missing required value
detail:
type: string
description: The details of the issue.
example: First name (e_firstname)
cause:
type: string
description: The description of the issue cause.
example: Issues associated with e_firstname ('First name')
ErrorMessage:
type: object
description: The representation of an error message.
required:
- error_type
- message
properties:
error_type:
type: string
description: The type of the error.
example: not_found
message:
type: string
description: The error message.
example: There is no resource named test_webfeed
securitySchemes:
mecOauth:
type: oauth2
flows:
clientCredentials:
tokenUrl: https://{reporting-hostname}/oauth/{company}/token
scopes: {}
security:
- mecOauth: []