PATCH /v1/hosting-plans/{id}
PATCH/v1/hosting-plans/{id}
Update a hosting plan
Datamodel
Deze operatie werkt op de entiteit hosting_plan (hosting_plan). Alle 16 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.
-
Verplichte velden:
name,diskQuotaGb,bandwidthQuotaGbMonth,maxEmailAccounts,maxDatabases,maxFtpUsers,maxSubdomains,phpVersions,defaultPhpVersion,phpMode,features,monthlyPriceCents -
Door de server beheerd:
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy— deze velden worden door het platform toegekend; in de request worden ze genegeerd.
Padparameters
| Naam | Type | Beschrijving |
|---|---|---|
idvereist | string |
Voorbeeld
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();Antwoordcodes
| HTTP | Betekenis |
|---|---|
200 |
Default Response |