API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

POST /v1/webspaces/{id}/cronjobs

POST/v1/webspaces/{id}/cronjobs

Create a cronjob for a webspace

Datamodel

Deze operatie werkt op de entiteit webspace (webspace). Alle 32 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.

Request body

NaamTypeBeschrijving
schedulevereiststring
commandvereiststring
enabledboolean
notifyOnErrorboolean
notifyEmailstring
tagsstring[]

Padparameters

NaamTypeBeschrijving
idvereiststring

Voorbeeld

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

Antwoordcodes

HTTP Betekenis
201 Default Response

Zoeken