Project Plan
Learn how to change your project's plan via API.
Update Project Plan
Changes the project to a new plan.
PATCH /project/:id/planPath Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Project ID (ObjectId) |
Body
| Field | Type | Required | Description |
|---|---|---|---|
plan | string | Yes | Plan identifier |
Available Plans
| Plan | Description |
|---|---|
static | Static plan |
basic | Basic plan |
premium | Premium plan |
premium_plus | Premium plus plan |
business | Business plan |
deep_learning_basic | Basic Deep Learning (with GPU) |
deep_learning_premium | Premium Deep Learning (with GPU) |
Example
{
"plan": "premium"
}Response
{
"status": "success",
"data": {
"plan_id": "premium",
"price": 59.90
}
}Examples
curl -X PATCH "https://api.zenifra.com/v1/project/507f1f77bcf86cd799439011/plan" \
-H "x-api-key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"plan": "premium"}'Python
import requests
API_KEY = "your-api-key"
PROJECT_ID = "507f1f77bcf86cd799439011"
response = requests.patch(
f"https://api.zenifra.com/v1/project/{PROJECT_ID}/plan",
headers={"x-api-key": API_KEY},
json={"plan": "premium"}
)
print(response.json())Notes
- Plan change may take a few minutes to be applied
- The price will be adjusted according to the project's payment model
- GPU plans (
deep_learning_basic,deep_learning_premium) have additional cost