API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola

PATCH /v1/webspaces/{id}/cronjobs/{cid}

PATCH/v1/webspaces/{id}/cronjobs/{cid}

Update a cronjob

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.

Cuerpo de la solicitud

NombreTipoDescripción
schedulestring
commandstring
enabledboolean
notifyOnErrorboolean
notifyEmailstring
tagsstring[]

Parámetros de ruta

NombreTipoDescripción
idobligatoriostring
cidobligatoriostring

Ejemplo

curl -X PATCH https://api.codemeta-os.de/v1/webspaces/{id}/cronjobs/{cid} \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "schedule": "string",
  "command": "string",
  "enabled": false,
  "notifyOnError": false,
  "notifyEmail": "string",
  "tags": []
}'
const result = await cm.webspaces.patch({
  "schedule": "string",
  "command": "string",
  "enabled": false,
  "notifyOnError": false,
  "notifyEmail": "string",
  "tags": []
});

Códigos de respuesta

HTTP Significado
200 Default Response

Búsqueda