Search + K

Command Palette

Search for a command to run...

Sign In

Upsert Vectors (Deprecated)

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

Upserts vectors into the specified index, creating them if they do not exist and returns the count of values and ids 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?: VectorizeIndexUpsertResponse
interface VectorizeIndexUpsertResponse {
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;
}