Raw
1 get:
2 operationId: GetTranslationsEntities
3 summary: List Translatable Entities
4 description: >-
5 Retrieve a list of translatable entities. The entities can be filtered by
6 fields such as `id`. The entities can also be sorted or paginated.
7 x-authenticated: true
8 parameters:
9 - name: type
10 in: query
11 description: Filter by a translatable entity type.
12 required: true
13 schema:
14 type: string
15 title: type
16 description: Filter by a translatable entity type.
17 example: product
18 - name: id
19 in: query
20 required: false
21 schema:
22 oneOf:
23 - type: string
24 title: id
25 description: Filter by an entity's ID.
26 - type: array
27 description: Filter by entity IDs.
28 items:
29 type: string
30 title: id
31 description: An entity's ID.
32 - name: limit
33 in: query
34 description: Limit the number of items returned in the list.
35 required: false
36 schema:
37 type: number
38 title: limit
39 description: Limit the number of items returned in the list.
40 externalDocs:
41 url: '#pagination'
42 - name: offset
43 in: query
44 description: The number of items to skip when retrieving a list.
45 required: false
46 schema:
47 type: number
48 title: offset
49 description: The number of items to skip when retrieving a list.
50 externalDocs:
51 url: '#pagination'
52 - name: order
53 in: query
54 description: >-
55 The field to sort the data by. By default, the sort order is ascending.
56 To change the order to descending, prefix the field name with `-`.
57 required: false
58 schema:
59 type: string
60 title: order
61 description: >-
62 The field to sort the data by. By default, the sort order is
63 ascending. To change the order to descending, prefix the field name
64 with `-`.
65 externalDocs:
66 url: '#pagination'
67 - name: with_deleted
68 in: query
69 description: The translation's with deleted.
70 required: false
71 schema:
72 type: boolean
73 title: with_deleted
74 description: The translation's with deleted.
75 - name: fields
76 in: query
77 description: >-
78 Comma-separated fields that should be included in the returned data. If
79 a field is prefixed with `+` it will be added to the default fields,
80 using `-` will remove it from the default fields. Without prefix it will
81 replace the entire default fields.
82 required: false
83 schema:
84 type: string
85 title: fields
86 description: >-
87 Comma-separated fields that should be included in the returned data.
88 If a field is prefixed with `+` it will be added to the default
89 fields, using `-` will remove it from the default fields. Without
90 prefix it will replace the entire default fields.
91 externalDocs:
92 url: '#select-fields-and-relations'
93 security:
94 - api_token: []
95 - cookie_auth: []
96 - jwt_token: []
97 x-codeSamples:
98 - lang: JavaScript
99 label: JS SDK
100 source:
101 $ref: ../code_samples/JavaScript/admin_translations_entities/get.js
102 - lang: Shell
103 label: cURL
104 source:
105 $ref: ../code_samples/Shell/admin_translations_entities/get.sh
106 tags:
107 - Translations
108 responses:
109 '200':
110 description: OK
111 content:
112 application/json:
113 schema:
114 $ref: ../components/schemas/AdminTranslationEntitiesResponse.yaml
115 '400':
116 $ref: ../components/responses/400_error.yaml
117 '401':
118 $ref: ../components/responses/unauthorized.yaml
119 '404':
120 $ref: ../components/responses/not_found_error.yaml
121 '409':
122 $ref: ../components/responses/invalid_state_error.yaml
123 '422':
124 $ref: ../components/responses/invalid_request_error.yaml
125 '500':
126 $ref: ../components/responses/500_error.yaml
127 x-since: 2.12.4
128 x-featureFlag: translation