1 /**
2 * @oas [post] /admin/index/sync
3 * operationId: PostIndexSync
4 * summary: Trigger Index Sync
5 * description: Trigger reindexing or re-ingestion of the Index Module.
6 * x-authenticated: true
7 * security:
8 * - api_token: []
9 * - cookie_auth: []
10 * - jwt_token: []
11 * requestBody:
12 * content:
13 * application/json:
14 * schema:
15 * $ref: "#/components/schemas/AdminIndexSyncPayload"
16 * x-codeSamples:
17 * - lang: Shell
18 * label: cURL
19 * source: |-
20 * curl -X POST '{backend_url}/admin/index/sync' \
21 * -H 'Authorization: Bearer {access_token}' \
22 * -H 'Content-Type: application/json' \
23 * --data-raw '{
24 * "strategy": "full"
25 * }'
26 * tags:
27 * - Index
28 * responses:
29 * "200":
30 * description: OK
31 * content:
32 * text/plain:
33 * schema:
34 * type: string
35 * title: message
36 * description: The 200 status code's message.
37 * example: OK
38 * "400":
39 * $ref: "#/components/responses/400_error"
40 * "401":
41 * $ref: "#/components/responses/unauthorized"
42 * "404":
43 * $ref: "#/components/responses/not_found_error"
44 * "409":
45 * $ref: "#/components/responses/invalid_state_error"
46 * "422":
47 * $ref: "#/components/responses/invalid_request_error"
48 * "500":
49 * $ref: "#/components/responses/500_error"
50 * x-since: 2.11.2
51 * x-featureFlag: index
52 *
53 */
54