Added/updated snippets for docs (#2318)
This commit is contained in:
23
docs/doc_examples/640621cea39cdeeb76fbc95bff31a18d.asciidoc
Normal file
23
docs/doc_examples/640621cea39cdeeb76fbc95bff31a18d.asciidoc
Normal file
@ -0,0 +1,23 @@
|
||||
// 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);
|
||||
----
|
||||
Reference in New Issue
Block a user