Transfer Index
This endpoint is used to transfer an index to another team.
Transferring to a personal account is not supported. However, transferring an index from a personal account to a team is allowed.
Skip to main contentDocumentation index
Fetch the complete documentation index at: /llms.txt
Ask it with GET /ask?q=<keywords or question>. Short keywords rank best.
Use these to discover all available pages before exploring further.
Feature requests: /common/help/feature-requests.md lists what users asked for and how to vote for a request or add one.
Page rating: `GET /feedback?path=<this page's path>&helpful=true` (or `false`) records whether this page helped. An optional `comment` (URL-encoded, at most 500 characters) says what was missing or wrong. It is anonymous and needs no key. Comments hold no code, secrets or personal data.
This endpoint is used to transfer an index to another team.
Transferring to a personal account is not supported. However, transferring an index from a personal account to a team is allowed.
curl --request POST \
--url https://api.upstash.com/v2/vector/index/{id}/transfer \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"target_account": "99a4c327-31f0-490f-a594-043ade84085a"
}'import requests
url = "https://api.upstash.com/v2/vector/index/{id}/transfer"
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json",
}
payload = {
"target_account": "99a4c327-31f0-490f-a594-043ade84085a"
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)const response = await fetch('https://api.upstash.com/v2/vector/index/{id}/transfer', {
method: 'POST',
headers: {
'Authorization': 'Basic <encoded-value>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"target_account": "99a4c327-31f0-490f-a594-043ade84085a"
})
});
const data = await response.json();
console.log(data);<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.upstash.com/v2/vector/index/{id}/transfer',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '{
"target_account": "99a4c327-31f0-490f-a594-043ade84085a"
}',
CURLOPT_HTTPHEADER => [
'Authorization: Basic <encoded-value>',
'Content-Type: application/json',
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
url := "https://api.upstash.com/v2/vector/index/{id}/transfer"
payload := strings.NewReader("{\n \"target_account\": \"99a4c327-31f0-490f-a594-043ade84085a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.upstash.com/v2/vector/index/{id}/transfer"))
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"target_account\": \"99a4c327-31f0-490f-a594-043ade84085a\"\n}"))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());require 'uri'
require 'net/http'
url = URI('https://api.upstash.com/v2/vector/index/{id}/transfer')
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = url.scheme == 'https'
request = Net::HTTP::Post.new(url)
request['Authorization'] = 'Basic <encoded-value>'
request['Content-Type'] = 'application/json'
request.body = '{
"target_account": "99a4c327-31f0-490f-a594-043ade84085a"
}'
response = http.request(request)
puts response.read_body"OK"Basic <encoded-value>, where <encoded-value> is the base64-encoded username:password.Was this page helpful?