Get cron job output
Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
Returns the output captured from the last execution of the cron job identified by its uid.
The uid is returned by the list cron jobs endpoint.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
usernamestringRequiredExample:
u123456789uidstringRequiredExample:
Unique identifier of the cron job as returned by the list cron jobs endpoint.
cron_abc123Responses
200
Success response
application/json
outputstringRequired
Output captured from the last cron job execution. Empty when the cron job has not run yet.
401
Unauthenticated response
application/json
500
Error response
application/json
get/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output
GET /api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"output": ""
}Last updated
Was this helpful?