Skip to main content

Create a cronjob

POST /v2/projects/{projectId}/cronjobs/
v2
POST
cronjob-create-cronjob

Request

  • projectIdstring (uuid)
    required

    ID of the Project you want to create a Cronjob for.

Responses

application/json

Created

  • idstring (uuid)
    required

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"active":true,"appId":"f0f86186-0a5a-45b2-aa33-502777496347","description":"i am a cronjob","destination":{"url":"https://mydomain.com"},"email":"email@mittwald.example","interval":"*/5 * * * *","timeout":123}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/projects/f0f86186-0a5a-45b2-aa33-502777496347/cronjobs