Passa al contenuto principale

HostingCronjobResponse

Successful response with one HostingCronjob

errorintegerrequired

Always 0 in a successful response

Constant value: 0
messagestring | nullnullablerequired

Always null in a successful response

data objectrequired

Cron job of the hosting: a URL called on a schedule

cronjob_idintegerrequired
hosting_idintegerrequired

Id of the hosting of the request: cron jobs belong to the purchase, so a subdomain lists those of its main hosting

purchase_idintegerrequired

Id of the purchase of the hosting (GET /api/v3/purchases/{purchase_id})

request_urlstringrequired

URL called by the cron job, with the protocol

http_request_methodstring | nullnullablerequired

HTTP method of the call: GET or POST

plan_monthstring | nullnullablerequired

Months, from 1 (January) to 12 (December), as a comma-separated list like in the creation (for example 1,6); null for every month

plan_monthdaystring | nullnullablerequired

Days of the month, from 1 to 31, as a comma-separated list like in the creation (for example 1,15); null for every day

plan_weekdaystring | nullnullablerequired

Days of the week, from 1 (Monday) to 7 (Sunday), as a comma-separated list like in the creation (for example 1,5); null for every day of the week

plan_hourstring | nullnullablerequired

Hours, from 0 to 23, as a comma-separated list like in the creation (for example 0,12); null for every hour

plan_minutestring | nullnullablerequired

Minutes, from 0 to 59, as a comma-separated list like in the creation (for example 0,30); null for every minute

activebooleanrequired

Whether the cron job is active: deleted cron jobs, and the old versions of changed ones, stay in the list as inactive

date_createddate-timenullablerequired
date_disableddate-timenullablerequired

When the cron job was deleted or replaced by a new version; null while it is active

metarequired

Always null: only the paginated lists have a meta

Constant value: null
HostingCronjobResponse
{
"error": 0,
"message": "string",
"data": {
"cronjob_id": 0,
"hosting_id": 0,
"purchase_id": 0,
"request_url": "string",
"http_request_method": "string",
"plan_month": "string",
"plan_monthday": "string",
"plan_weekday": "string",
"plan_hour": "string",
"plan_minute": "string",
"active": true,
"date_created": "2024-07-29T15:51:28.071Z",
"date_disabled": "2024-07-29T15:51:28.071Z"
}
}