Skip to main content
POST
/
vector
/
index
/
{id}
/
setplan
Set Index Plan
curl --request POST \
  --url https://api.upstash.com/v2/vector/index/{id}/setplan \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "target_plan": "free"
}'
"OK"

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

Body

application/json
target_plan
enum<string>
required
Available options:
free,
payg,
fixed

Response

200 - application/json
Example: