PATCH /v1/hosting-plans/{id}
PATCH/v1/hosting-plans/{id}
Update a hosting plan
Datenmodell
Diese Operation arbeitet auf der Entität hosting_plan (hosting_plan). Alle 16 Felder — Typ, Validierung, Pflichtangabe, Beziehungen — stehen in der Schema-Referenz.
- Pflichtfelder:
name,diskQuotaGb,bandwidthQuotaGbMonth,maxEmailAccounts,maxDatabases,maxFtpUsers,maxSubdomains,phpVersions,defaultPhpVersion,phpMode,features,monthlyPriceCents - Server-verwaltet:
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy— diese Felder vergibt die Plattform; im Request werden sie verworfen.
Pfad-Parameter
| Name | Typ | Beschreibung |
|---|---|---|
iderforderlich | string |
Beispiel
curl -X PATCH https://api.codemeta-os.de/v1/hosting-plans/{id} \
-H "X-Tenant-Id: $TENANT" \
-b cookies.txtconst result = await cm.hosting-plans.patch();Antwortcodes
| HTTP | Bedeutung |
|---|---|
200 |
Default Response |