-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathquery.yaml
168 lines (168 loc) · 5.96 KB
/
query.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
openapi: 3.0.0
info:
title: Query API
version: 1.0.0
description:
The Medallia Query API enables access to raw and aggregated data from
Medallia Experience Cloud.
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:
/data/v0/query:
post:
tags:
- Query
description: Performs a GraphQL-based request
operationId: query
requestBody:
description: The GraphQL request payload
required: true
content:
application/json:
schema:
type: object
required:
- query
properties:
query:
type: string
variables:
type: object
responses:
200:
description:
The response to the query made, its data shape conforming to the
structure requested in the query
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
properties:
data:
type: object
errors:
type: array
items:
type: object
properties:
message:
type: string
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'
412:
description: Precondition failed
500:
description: Internal server error
security:
- mecOauth: []
components:
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
securitySchemes:
mecOauth:
type: oauth2
flows:
clientCredentials:
tokenUrl: https://{reporting-hostname}/oauth/{company}/token
scopes: {}
security:
- mecOauth: []