Clienvy API documentation

Website application cronjobs


List cron jobs

GET
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/cron-jobs

Returns all cron jobs configured for the website application, newest first.

List cron jobs › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

List cron jobs › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List cron jobs › Responses

Array of WebsiteApplicationCronJobResource

id
​string · uuid
type
​WebsiteApplicationCronJobType · enum
Enum values:
url
command
value
​string
full_url
​string
schedule
​string
enabled
​boolean
last_run_at
​string | null · date-time
next_run_at
​string | null · date-time
updated_at
​string · date-time
created_at
​string · date-time

Create a cron job

POST
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/cron-jobs

Adds a cron job to the website application. The job runs either a URL or a shell command on the given schedule.

Create a cron job › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

Create a cron job › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Create a cron job › Request Body

value
​string · maxLength: 2048 · required
type
​string · required

Cron job type: url or command.

schedule
​string · maxLength: 64 · required

Cron expression describing when the job runs (e.g. 0 * * * *).

Create a cron job › Responses

WebsiteApplicationCronJobResource

​WebsiteApplicationCronJobResource · required
​WebsiteApplicationResource · required

Update a cron job

PUT
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/cron-jobs/{websiteApplicationCronJob}

Updates the type, value, schedule or enabled state of an existing cron job.

Update a cron job › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

websiteApplicationCronJob
​string · uuid · required

The website application cron job UUID

Update a cron job › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Update a cron job › Request Body

value
​string · maxLength: 2048
enabled
​boolean
type
​string

Cron job type: url or command.

schedule
​string · maxLength: 64

Cron expression describing when the job runs (e.g. 0 * * * *).

Update a cron job › Responses

WebsiteApplicationCronJobResource

​WebsiteApplicationCronJobResource · required
​WebsiteApplicationResource · required

Delete a cron job

DELETE
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/cron-jobs/{websiteApplicationCronJob}

Permanently removes the cron job from the website application.

Delete a cron job › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

websiteApplicationCronJob
​string · uuid · required

The website application cron job UUID

Delete a cron job › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Delete a cron job › Responses

WebsiteApplicationCronJobResource

​WebsiteApplicationCronJobResource · required
​WebsiteApplicationResource · required

List cron job logs

GET
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/cron-jobs/{websiteApplicationCronJob}/logs

Returns the paginated run history (output, status code, duration) for a cron job, newest first.

List cron job logs › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

websiteApplicationCronJob
​string · uuid · required

The website application cron job UUID

List cron job logs › query Parameters

page
​integer

Page number of the paginated result set.

per_page
​integer

Number of items per page. Defaults to the endpoint's own page size; capped at 500.

List cron job logs › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List cron job logs › Responses

Array of WebsiteApplicationCronLogResource

​object