API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

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

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

Update a cronjob

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.

Corps de la requête

NomTypeDescription
schedulestring
commandstring
enabledboolean
notifyOnErrorboolean
notifyEmailstring
tagsstring[]

Paramètres de chemin

NomTypeDescription
idobligatoirestring
cidobligatoirestring

Exemple

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": []
});

Codes de réponse

HTTP Signification
200 Default Response

Recherche