Patch webspace PATCH /v1/webspaces/{id}
JSON Merge Patch update.
Modèle de données
Cette opération porte sur l'entité webspace (webspace). Les 32 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma .
Champs obligatoires : domainName, dnsMode
Gérés par le serveur : _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy, webspaceNumber, pleskDomainId, pleskClientLogin, pleskServerId, dnsMode, status. La plateforme attribue ces champs ; ils sont ignorés dans la requête.
Corps de la requête
Nom Type Description phpVersionstringphpModestringhttpsRedirectbooleanhstsbooleanhstsMaxAgeintegerdiskQuotaGbintegerbandwidthQuotaGbMonthintegermaxEmailAccountsintegermaxDatabasesintegermaxFtpUsersintegermaxSubdomainsintegersslModestringmodSecurityEnabledbooleannginxCacheEnabledbooleanuptimeCheckEnabledbooleanuptimeCheckUrlstringbillingEnabledbooleanbillingPriceCentsintegerpartyIdstringassignedToIdstringplanstringtagsstring[]
Paramètres de chemin
Nom Type Description idobligatoire string
Exemple
curl -X PATCH https://api.codemeta-os.de/v1/webspaces/{id} \
-H "X-Tenant-Id: $TENANT " \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"phpVersion": "string",
"phpMode": "string",
"httpsRedirect": false,
"hsts": false,
"hstsMaxAge": 0,
"diskQuotaGb": 0,
"bandwidthQuotaGbMonth": 0,
"maxEmailAccounts": 0,
"maxDatabases": 0,
"maxFtpUsers": 0,
"maxSubdomains": 0,
"sslMode": "string",
"modSecurityEnabled": false,
"nginxCacheEnabled": false,
"uptimeCheckEnabled": false,
"uptimeCheckUrl": "string",
"billingEnabled": false,
"billingPriceCents": 0,
"partyId": "string",
"assignedToId": "string",
"plan": "string",
"tags": []
}' const result = await cm.webspaces. patch ({
"phpVersion" : "string" ,
"phpMode" : "string" ,
"httpsRedirect" : false ,
"hsts" : false ,
"hstsMaxAge" : 0 ,
"diskQuotaGb" : 0 ,
"bandwidthQuotaGbMonth" : 0 ,
"maxEmailAccounts" : 0 ,
"maxDatabases" : 0 ,
"maxFtpUsers" : 0 ,
"maxSubdomains" : 0 ,
"sslMode" : "string" ,
"modSecurityEnabled" : false ,
"nginxCacheEnabled" : false ,
"uptimeCheckEnabled" : false ,
"uptimeCheckUrl" : "string" ,
"billingEnabled" : false ,
"billingPriceCents" : 0 ,
"partyId" : "string" ,
"assignedToId" : "string" ,
"plan" : "string" ,
"tags" : []
});
Codes de réponse
HTTP
Signification
200
Default Response
Description à venir
Cette opération n'a pas encore d'annotation relue. Le contenu sera ajouté lors de la prochaine mise à jour de la documentation.