Create scheduled indexing for knowledge base
/v2/gen-ai/scheduled-indexing
To create scheduled indexing for a knowledge base, send a POST request to /v2/gen-ai/scheduled-indexing.
Body Parameters
days: optional array of number
Days for execution (day is represented same as in a cron expression, e.g. Monday begins with 1 )
knowledge_base_uuid: optional string
Knowledge base uuid for which the schedule is created
time: optional string
Time of execution (HH:MM) UTC
Returns
Create scheduled indexing for knowledge base
curl https://api.digitalocean.com/v2/gen-ai/scheduled-indexing \
-X POST \
-H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN"
{
"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"
}
}Returns Examples
{
"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"
}
}