Passa al contenuto principale

HostingCronjobCreateRequest

request_protocolstringrequired

http or https

Possible values: [http, https]

request_urlstringrequired

URL to call, without protocol (e.g. www.example.com/cron.php): a leading http:// or https:// is removed and request_protocol is used

http_request_methodstring

HTTP method of the call

Possible values: [GET, POST]

Default value: GET
plan_monthstring | nullnullable

Month in which the cronjob runs, from 1 (January) to 12 (December). Omit it, or send null or an empty string, to run it every month

Possible values: Value must match regular expression ^([1-9]|1[0-2])?$

Example: 1
plan_monthdaystring | nullnullable

Days of the month, as a comma-separated list of values from 1 to 31 (e.g. 1,15). Omit it, or send null or an empty string, to run it every day

plan_weekdaystring | nullnullable

Day of the week, from 1 (Monday) to 7 (Sunday). Omit it, or send null or an empty string, to run it every day of the week

Possible values: Value must match regular expression ^[1-7]?$

Example: 1
plan_hourstring | nullnullable

Hours, as a comma-separated list of values from 0 to 23 (e.g. 0,12). Omit it, or send null or an empty string, to run it every hour

plan_minutestring | nullnullable

Minutes, as a comma-separated list of values from 0 to 59 (e.g. 0,30). Omit it, or send null or an empty string, to run it every minute

HostingCronjobCreateRequest
{
"request_protocol": "http",
"request_url": "string",
"http_request_method": "GET",
"plan_month": "1",
"plan_monthday": "string",
"plan_weekday": "1",
"plan_hour": "string",
"plan_minute": "string"
}