メインコンテンツまでスキップ

Create Project (V2)

This operation creates a new project with a specified name and subscription plan.

POST
/v2/projects
Base URL

The base URL for this API is in the following format:

https://api.cloud.zilliz.com

📘Notes

The endpoints on the control plane currently supports up to 20 requests per second per user per endpoint.

export BASE_URL="https://api.cloud.zilliz.com"
Parameters
Authorizationstringheaderrequired

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

Example Value: Bearer {{TOKEN}}
Request Bodyapplication/json
projectNamestring

The name of the project to create.

planstring

The subscription plan of the project. The possible values are Standard and Enterprise.

export TOKEN="YOUR_API_KEY"

curl --request POST \
--url "${BASE_URL}/v2/projects" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"projectName": "My Project",
"plan": "Enterprise"
}'
Responses200 - application/json

A success response

codeinteger

Response code.

Example Value: 0
dataobject

Response payload which contains the ID of the created project.

projectIdstring

ID of the created project.

A failure response.

codeinteger

Response code.

messagestring

Error message.

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