Skip to main content
POST
/
sources
/
bulk-action
Bulk Actions on Sources
curl --request POST \
  --url https://api-prod.voltai.ai/source/api/sources/bulk-action/ \
  --header 'Content-Type: application/json' \
  --cookie sessionid= \
  --data '
{
  "action": "enable",
  "source_names": [
    "<string>"
  ],
  "topic_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "job_version": "<string>"
}
'
{
  "action": "enable",
  "source_names": [
    "document.pdf",
    "datasheet.pdf"
  ]
}

Authorizations

sessionid
string
cookie
required

Query Parameters

organization_name
string
required

Organization name (required for multi-tenant API keys)

Body

Request schema for source bulk actions.

action
enum<string>
required

Action to perform on the sources

  • enable - enable
  • disable - disable
  • reindex - reindex
  • reparse - reparse
  • add-to-topic - add-to-topic
  • remove-from-topic - remove-from-topic
  • delete - delete
Available options:
enable,
disable,
reindex,
reparse,
add-to-topic,
remove-from-topic,
delete
source_names
string[]
required

List of source names to perform the action on (e.g., ['document.pdf', 'datasheet.pdf'])

Minimum string length: 1
topic_uuid
string<uuid>

Topic UUID (required for add-to-topic and remove-from-topic actions)

job_version
string

Job version (optional, for reparse action)

Minimum string length: 1

Response

Reusable response schema for bulk actions.

message
string
required
deleted_count
integer
created_count
integer
existing_count
integer
processed_paths
integer
updated_count
integer
deleted_subtopics
integer
error_count
integer
errors
object[]