Files
elasticsearch-js/docs/doc_examples/640621cea39cdeeb76fbc95bff31a18d.asciidoc
github-actions[bot] b4eb8e5441 [Backport 8.15] Added/updated snippets for docs (#2319)
(cherry picked from commit f737290d10)

Co-authored-by: Josh Mock <joshua.mock@elastic.co>
2024-07-29 17:10:42 -05:00

24 lines
817 B
Plaintext

// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.transport.request({
method: "PUT",
path: "/_connector/my-connector/_last_sync",
body: {
last_access_control_sync_error: "Houston, we have a problem!",
last_access_control_sync_scheduled_at: "2023-11-09T15:13:08.231Z",
last_access_control_sync_status: "pending",
last_deleted_document_count: 42,
last_incremental_sync_scheduled_at: "2023-11-09T15:13:08.231Z",
last_indexed_document_count: 42,
last_sync_error: "Houston, we have a problem!",
last_sync_scheduled_at: "2024-11-09T15:13:08.231Z",
last_sync_status: "completed",
last_synced: "2024-11-09T15:13:08.231Z",
},
});
console.log(response);
----