Search + K

Command Palette

Search for a command to run...

Sign In

Insert Vectors (Deprecated)

Deprecated
POST /accounts/{account_id}/vectorize/indexes/{index_name}/insert
Copy endpoint
https://api.cloudflare.com/client/v4

Inserts vectors into the specified index and returns the count of the vectors successfully inserted.

Parameters

path Path Parameters

Name Type
account_id required
type VectorizeIdentifier = string
index_name required
type VectorizeIndexName = string

Request Body

application/x-ndjson required
string

Responses

200 application/json

Insert Vectors Response

type VectorizeApiResponseSingle = never & { result?: VectorizeIndexInsertResponse
interface VectorizeIndexInsertResponse {
count?: number;
ids?: VectorizeVectorIdentifier[];
}
; }

Client Errors

4XX application/json

Insert Vectors Failure Response

type VectorizeApiResponseSingle = never & { result?: {} | null; } & interface VectorizeApiResponseCommonFailure {
errors: VectorizeMessages
type VectorizeMessages = { code: number;message: string; }[]
;
messages: VectorizeMessages
type VectorizeMessages = { code: number;message: string; }[]
;
result: null;
success: false;
}