For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
Usage
client.v2.genAi.scheduledIndexing.post(body: ApiCreateScheduledIndexingInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiCreateScheduledIndexingOutput>
Description
To create scheduled indexing for a knowledge base, send a POST request to /v2/gen-ai/scheduled-indexing.
Parameters
days array of integers optional
Days for execution (day is represented same as in a cron expression, e.g. Monday begins with 1 )
knowledgeBaseUuid string optional
Example: 123e4567-e89b-12d3-a456-426614174000
Knowledge base uuid for which the schedule is created
time string optional
Example: example string
Time of execution (HH:MM) UTC
Request Sample
Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
createDigitalOceanClient,
DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";
const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);
const response = await client.v2.genAi.scheduledIndexing.post({
days: [
123,
],
knowledgeBaseUuid: "123e4567-e89b-12d3-a456-426614174000",
time: "example string",
});
Response Example
Show Response Example
{
"indexing_info": {
"created_at": "2023-01-01T00:00:00Z",
"days": [
123
],
"deleted_at": "2023-01-01T00:00:00Z",
"is_active": true,
"knowledge_base_uuid": "123e4567-e89b-12d3-a456-426614174000",
"last_ran_at": "2023-01-01T00:00:00Z",
"next_run_at": "2023-01-01T00:00:00Z",
"time": "example string",
"updated_at": "2023-01-01T00:00:00Z",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
}
See /v2/gen-ai/scheduled-indexing in the API reference for additional detail on responses, headers, parameters, and more.