Zum Hauptinhalt springen
Version: API v1

Spezifischen cronjob eines Accounts bearbeiten

PUT/cronjobs/{cronjobIdentifier}/
v1
PUT
updateCronjob

Diese Operation bearbeitet einen spezifischen Cronjob eines Accounts aus

Request

  • cronjobIdentifierstring
    required

    ID eines Cronjobs

Responses

application/json

Der modifizierte Cronjob

  • uidinteger
    required
  • namestring
    required
  • enabledboolean
    required
  • errorReportingstring (one of: NONE, MAIL_ON_FAILURE, MAIL)
    required
  • errorReportingEmailstring
    required
  • customTimeoutModenumber (one of: 0, 1)
    required

    Whether a custom timeout is set

  • customTimeoutValuenumber

    Amount of custom timeout

  • typestring (one of: SERVER, BROWSER, INTERPRETER)
    required

    Type of cronjob (server based, browser based, custom interpreter)

  • intervalarray of string
    required

    Crontab interval

    • Array[
    • *string
    • ]
  • statusnumber
    required
  • filestring
  • paramsstring
  • urlstring
  • interpreterobject
    • hiddenboolean
      required
    • namestring
      required
    • typestring
      required
    • uidnumber
      required
  • Usage examples

    $ curl \
    --fail \
    --location \
    -X PUT \
    -d '{"customTimeoutMode":123,"customTimeoutValue":123,"enabled":true,"errorReporting":"NONE","errorReportingEmail":"string","file":"string","url":"string","interpreter":123,"interval":["string"],"name":"string","params":"string","type":"SERVER"}' \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    -H 'Content-Type: application/json' \
    https://api.mittwald.de/v1/cronjobs/string