Skip to main content
POST
Set Continuous Indexing
Click for Python SDK
This endpoint enables or disables image level continuous indexing for a Dataset, provided that one exists. When continuous indexing is enabled, embeddings will be automatically generated for each image appended to the dataset. These embeddings are used for Autotag and similarity search. When continuous indexing is disabled, embeddings will not be generated for newly uploaded images. Enabling continuous indexing will also automatically kick off an image indexing job to index existing images without embeddings in the Dataset. Continuous indexing is enabled by default on all newly created Datasets as of November 30, 2021. You will not be able to toggle continuous indexing if there is a currently running image indexing job within the last two days. To see a list of your currently running async jobs, use the async job polling endpoint.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

dataset_id
string
required

The Scale-generated ID of the Dataset.

Body

application/json
enable
boolean
default:false

Whether to enable or disable continuous indexing.

Response

200

dataset_id
string
Example:

"ds_by0a81gnf6gfy9hw6rpg"

message
string
Example:

"Continuous indexing is now enabled for dataset!"

job_id
string
Example:

"job_ffsj9afawlfkd"

job_last_known_status
string
Example:

"Running"

job_type
string
Example:

"indexingImage"

job_creation_time
string
Example:

"2021-07-20T18:07:13.055Z"