|
1
|
get: |
|
2
|
operationId: GetLayoutsConfigurations |
|
3
|
summary: List Layout Configurations |
|
4
|
description: >- |
|
5
|
Retrieve a list of layout configurations made by admin users. The layouts |
|
6
|
can be filtered by fields such as `id`. The layouts can also be sorted or |
|
7
|
paginated. |
|
8
|
x-authenticated: true |
|
9
|
parameters: |
|
10
|
- name: id |
|
11
|
in: query |
|
12
|
required: false |
|
13
|
schema: |
|
14
|
oneOf: |
|
15
|
- type: string |
|
16
|
title: id |
|
17
|
description: Filter by layout configuration ID. |
|
18
|
- type: array |
|
19
|
description: Filter by layout configuration IDs. |
|
20
|
items: |
|
21
|
type: string |
|
22
|
title: id |
|
23
|
description: The layout configuration's ID. |
|
24
|
- name: zone |
|
25
|
in: query |
|
26
|
required: false |
|
27
|
schema: |
|
28
|
oneOf: |
|
29
|
- type: string |
|
30
|
title: zone |
|
31
|
description: Filter by layout configuration zone. |
|
32
|
- type: array |
|
33
|
description: Filter by layout configuration zones. |
|
34
|
items: |
|
35
|
type: string |
|
36
|
title: zone |
|
37
|
description: The layout configuration's zone. |
|
38
|
- name: user_id |
|
39
|
in: query |
|
40
|
required: false |
|
41
|
schema: |
|
42
|
oneOf: |
|
43
|
- type: string |
|
44
|
title: user_id |
|
45
|
description: Filter by the ID of the user who created the layout configuration. |
|
46
|
- type: array |
|
47
|
description: Filter by the IDs of users who created the layout configurations. |
|
48
|
items: |
|
49
|
type: string |
|
50
|
title: user_id |
|
51
|
description: The ID of the user who created the layout configuration. |
|
52
|
- name: is_system_default |
|
53
|
in: query |
|
54
|
description: Filter by whether the layout configuration is a system default. |
|
55
|
required: false |
|
56
|
schema: |
|
57
|
type: boolean |
|
58
|
title: is_system_default |
|
59
|
description: Whether the layout configuration is a system default. |
|
60
|
- name: limit |
|
61
|
in: query |
|
62
|
description: Limit the number of items returned in the list. |
|
63
|
required: false |
|
64
|
schema: |
|
65
|
type: number |
|
66
|
title: limit |
|
67
|
description: Limit the number of items returned in the list. |
|
68
|
externalDocs: |
|
69
|
url: '#pagination' |
|
70
|
- name: offset |
|
71
|
in: query |
|
72
|
description: The number of items to skip when retrieving a list. |
|
73
|
required: false |
|
74
|
schema: |
|
75
|
type: number |
|
76
|
title: offset |
|
77
|
description: The number of items to skip when retrieving a list. |
|
78
|
externalDocs: |
|
79
|
url: '#pagination' |
|
80
|
- name: order |
|
81
|
in: query |
|
82
|
description: >- |
|
83
|
The field to sort the data by. By default, the sort order is ascending. |
|
84
|
To change the order to descending, prefix the field name with `-`. |
|
85
|
required: false |
|
86
|
schema: |
|
87
|
type: string |
|
88
|
title: order |
|
89
|
description: >- |
|
90
|
The field to sort the data by. By default, the sort order is |
|
91
|
ascending. To change the order to descending, prefix the field name |
|
92
|
with `-`. |
|
93
|
externalDocs: |
|
94
|
url: '#pagination' |
|
95
|
- name: with_deleted |
|
96
|
in: query |
|
97
|
description: The layout's with deleted. |
|
98
|
required: false |
|
99
|
schema: |
|
100
|
type: boolean |
|
101
|
title: with_deleted |
|
102
|
description: The layout's with deleted. |
|
103
|
- name: fields |
|
104
|
in: query |
|
105
|
description: >- |
|
106
|
Comma-separated fields that should be included in the returned data. If |
|
107
|
a field is prefixed with `+` it will be added to the default fields, |
|
108
|
using `-` will remove it from the default fields. Without prefix it will |
|
109
|
replace the entire default fields. |
|
110
|
required: false |
|
111
|
schema: |
|
112
|
type: string |
|
113
|
title: fields |
|
114
|
description: >- |
|
115
|
Comma-separated fields that should be included in the returned data. |
|
116
|
If a field is prefixed with `+` it will be added to the default |
|
117
|
fields, using `-` will remove it from the default fields. Without |
|
118
|
prefix it will replace the entire default fields. |
|
119
|
externalDocs: |
|
120
|
url: '#select-fields-and-relations' |
|
121
|
- name: $and |
|
122
|
in: query |
|
123
|
description: >- |
|
124
|
Join query parameters with an AND condition. Each object's content is |
|
125
|
the same type as the expected query parameters. |
|
126
|
required: false |
|
127
|
schema: |
|
128
|
type: array |
|
129
|
description: >- |
|
130
|
Join query parameters with an AND condition. Each object's content is |
|
131
|
the same type as the expected query parameters. |
|
132
|
items: |
|
133
|
type: object |
|
134
|
title: $and |
|
135
|
- name: $or |
|
136
|
in: query |
|
137
|
description: >- |
|
138
|
Join query parameters with an OR condition. Each object's content is the |
|
139
|
same type as the expected query parameters. |
|
140
|
required: false |
|
141
|
schema: |
|
142
|
type: array |
|
143
|
description: >- |
|
144
|
Join query parameters with an OR condition. Each object's content is |
|
145
|
the same type as the expected query parameters. |
|
146
|
items: |
|
147
|
type: object |
|
148
|
title: $or |
|
149
|
security: |
|
150
|
- api_token: [] |
|
151
|
- cookie_auth: [] |
|
152
|
- jwt_token: [] |
|
153
|
x-codeSamples: |
|
154
|
- lang: JavaScript |
|
155
|
label: JS SDK |
|
156
|
source: |
|
157
|
$ref: ../code_samples/JavaScript/admin_layouts_configurations/get.js |
|
158
|
- lang: Shell |
|
159
|
label: cURL |
|
160
|
source: |
|
161
|
$ref: ../code_samples/Shell/admin_layouts_configurations/get.sh |
|
162
|
tags: |
|
163
|
- Layouts |
|
164
|
responses: |
|
165
|
'200': |
|
166
|
description: OK |
|
167
|
content: |
|
168
|
application/json: |
|
169
|
schema: |
|
170
|
allOf: |
|
171
|
- type: object |
|
172
|
description: The pagination details of the layout configurations list. |
|
173
|
required: |
|
174
|
- limit |
|
175
|
- offset |
|
176
|
- count |
|
177
|
properties: |
|
178
|
limit: |
|
179
|
type: number |
|
180
|
title: limit |
|
181
|
description: The maximum number of items returned in the list. |
|
182
|
offset: |
|
183
|
type: number |
|
184
|
title: offset |
|
185
|
description: The number of items skipped before retrieving the list. |
|
186
|
count: |
|
187
|
type: number |
|
188
|
title: count |
|
189
|
description: The total number of items in the list. |
|
190
|
estimate_count: |
|
191
|
type: number |
|
192
|
title: estimate_count |
|
193
|
description: >- |
|
194
|
The estimated count retrieved from the PostgreSQL query |
|
195
|
planner, which may be inaccurate. |
|
196
|
x-featureFlag: index_engine |
|
197
|
- type: object |
|
198
|
description: The layout configurations list. |
|
199
|
required: |
|
200
|
- layout_configurations |
|
201
|
properties: |
|
202
|
layout_configurations: |
|
203
|
type: array |
|
204
|
description: The list of layout configurations. |
|
205
|
items: |
|
206
|
$ref: ../components/schemas/AdminLayoutConfiguration.yaml |
|
207
|
'400': |
|
208
|
$ref: ../components/responses/400_error.yaml |
|
209
|
'401': |
|
210
|
$ref: ../components/responses/unauthorized.yaml |
|
211
|
'404': |
|
212
|
$ref: ../components/responses/not_found_error.yaml |
|
213
|
'409': |
|
214
|
$ref: ../components/responses/invalid_state_error.yaml |
|
215
|
'422': |
|
216
|
$ref: ../components/responses/invalid_request_error.yaml |
|
217
|
'500': |
|
218
|
$ref: ../components/responses/500_error.yaml |
|
219
|
x-since: 2.17.2 |