Patch webspace PATCH /v1/webspaces/{id}
JSON Merge Patch update.
Modelo de datos
Esta operación trabaja sobre la entidad webspace (webspace). Los 32 campos (tipo, validación, obligatoriedad y relaciones) figuran en la referencia del esquema .
Campos obligatorios: domainName, dnsMode
Gestionados por el servidor: _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy, webspaceNumber, pleskDomainId, pleskClientLogin, pleskServerId, dnsMode, status. La plataforma asigna estos campos; si se envían en la solicitud, se descartan.
Cuerpo de la solicitud
Nombre Tipo Descripción phpVersionstringphpModestringhttpsRedirectbooleanhstsbooleanhstsMaxAgeintegerdiskQuotaGbintegerbandwidthQuotaGbMonthintegermaxEmailAccountsintegermaxDatabasesintegermaxFtpUsersintegermaxSubdomainsintegersslModestringmodSecurityEnabledbooleannginxCacheEnabledbooleanuptimeCheckEnabledbooleanuptimeCheckUrlstringbillingEnabledbooleanbillingPriceCentsintegerpartyIdstringassignedToIdstringplanstringtagsstring[]
Parámetros de ruta
Nombre Tipo Descripción idobligatorio string
Ejemplo
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" : []
});
Códigos de respuesta
HTTP
Significado
200
Default Response
Descripción pendiente
Esta operación todavía no tiene una anotación revisada. El contenido se añadirá en la próxima actualización de la documentación.