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

POST /v1/webspaces/{id}/cronjobs

POST/v1/webspaces/{id}/cronjobs

Create a cronjob for a webspace

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
scheduleobligatoriostring
commandobligatoriostring
enabledboolean
notifyOnErrorboolean
notifyEmailstring
tagsstring[]

Parámetros de ruta

NombreTipoDescripción
idobligatoriostring

Ejemplo

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

Códigos de respuesta

HTTP Significado
201 Default Response

Búsqueda