跳到主要内容

升级项目 (V2)

This operation updates subscription plan of a specified project.

PATCH
/v2/projects/{projectId}
Base URL

该 API 的 Base URL 格式如下:

https://api.cloud.zilliz.com.cn

📘说明

控制面接口速率限制为单用户单接口每秒最多 20 个请求。

export BASE_URL="https://api.cloud.zilliz.com.cn"
参数
Authorizationstringheaderrequired

The authentication token should be an API key with appropriate privileges or a pair of colon-joined username and password, like username:password.

示例值:Bearer {{TOKEN}}
projectIdstringpathrequired

The ID of the project to upgrade.

示例值:proj-xx
请求体application/json
planstring

The subscription plan to upgrade to.

export TOKEN="YOUR_API_KEY"
export projectId="proj-xx"

curl --request PATCH \
--url "${BASE_URL}/v2/projects/${projectId}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"plan": "Enterprise"
}'
响应200 - application/json

A success response

codeinteger

Response code.

示例值:0
dataobject

响应载荷,包含升级后的项目 ID。

projectIdstring

升级后的项目 ID。

A failure response.

codeinteger

Response code.

messagestring

Error message.

{
"code": 0,
"data": {
"projectId": "proj-x"
}
}