Schedules

Schedule your xRunBooks via our API

List all Schedules

Example:

curl  'https://<your domain>/v1alpha1/schedules?pageSize=1&pageToken=1' \
      -H "X-unSkript-API-Key:>token>"

List schedules

get

List schedules

Query parameters
reqHdr.tidstringOptional

tid is the unique request id.

filterstringOptional

filter expression.

pageSizeinteger · int32Optional

page_size specifies the maximum number of results to be returned.

pageTokenstringOptional

page_token is used to request a specific page of the list results.

orderBystringOptional

order_by is used to sort the fields by ascending or descending.

Responses
200

A successful response.

application/json
get
/v1alpha1/schedules

Create a Schedule

This schedules "unSkript Rules" to run at 5 AM (GMT) every day:

Create a Schedule

post

Creates and returns a Schedule object on Success and error on failure

Body

CreateScheduleRequest is the request to create new schedual for particular xRunbook.

Responses
200

A successful response.

application/json
post
/v1alpha1/schedules

Get a Specific Schedule's details

Get schedule details

get

Get details about a particular schedule

Path parameters
scheduleIdstringRequired

schedule_id is the id of the schedule.

Query parameters
reqHdr.tidstringOptional

tid is the unique request id.

Responses
200

A successful response.

application/json
get
/v1alpha1/schedules/{scheduleId}

Delete a schedule

Delete a Schedule

delete

Deletes a particular schedule

Path parameters
scheduleIdstringRequired

schedule_id is the id of the schedule.

Query parameters
reqHdr.tidstringOptional

tid is the unique request id.

Responses
200

A successful response.

application/json
delete
/v1alpha1/schedules/{scheduleId}

Update a Schedule

Update a Schedule

patch

Update certain fields of a schedule.

Path parameters
scheduleIdstringRequired

schedule_id is the id of schedule.

Query parameters
reqHdr.tidstringOptional

tid is the unique request id.

Body

Schedule contains basic details about a schedule.

idstringRead-onlyOptional

id is the id of the schedule.

proxyIdstringOptional

proxy_id is the id of the proxy under which the schedule should be created.

proxyNamestringRead-onlyOptional

environment_name is the name of the environment under which the schedule should be created.

runbookIdstringRequired

runbook_id is the id of the runbook under which the schedule should be created.

runbookNamestringRequired

runbook_name is the name of the runbook under which the schedule should be created.

inputSchemastringOptional

input_schema is the workflow's input schema.

paramsstringOptional

params are params for creating a calendar.

schedulestringRequired
lastRunstring · date-timeRead-onlyOptional

last_run captures the time it was last run.

lastUpdatedstring · date-timeRead-onlyOptional

last_updated captures the time it was last updated.

userEmailstringRead-onlyOptional
Responses
200

A successful response.

application/json
patch
/v1alpha1/schedules/{scheduleId}

Last updated

Was this helpful?