githubEdit

Schedule

This endpoint is used to create, update, search or delete schedules for a particular workspace inside an organization, this is useful when you need to create schedule task or running jobs in a particular time.

Entity fields:

Path
Type
Description

data.type

string

Should be "template"

data.attributes.cron

string

Cron expression to schedule a job inside a workspace. For more information please visit Quartz documentationarrow-up-right.

data.attributes.tcl

string

Terrakube configuration language in base64

data.attributes.templateReference

string

Terrakube template id

circle-info

To better understand Terrakube Configuration Language job templates please refer to the following GitHub repository.arrow-up-right

Example:

{
  "data": {
    "type": "schedule",
    "attributes": {
      "cron": "0 0/1 * * * ?",
      "tcl": "{{templateSample}}"
    }
  }
}

Supported Operations

get

Returns the relationship schedule

Path parameters
workspaceIdstringRequired

workspace Identifier

Query parameters
filter[schedule]stringOptional

Filters the collection of schedule using a 'disjoint' RSQL expression

page[number]integer · int32Optional

Number of pages to return. Can be used with page[size]

page[size]integer · int32Optional

Number of elements per page. Can be used with page[number]

page[offset]integer · int32Optional

Offset from 0 to start paginating. Can be used with page[limit]

page[limit]integer · int32Optional

Maximum number of items to return. Can be used with page[offset]

page[totals]stringOptional

For requesting total pages/records be included in the response page meta data

Responses
get
/workspace/{workspaceId}/schedule
200

Successful response

post

Creates an item of type schedule and adds it to schedule

Path parameters
workspaceIdstringRequired

workspace Identifier

Body
Responses
post
/workspace/{workspaceId}/schedule
201

Successful response

delete

Deletes an instance of type schedule

Path parameters
workspaceIdstringRequired

workspace Identifier

scheduleIdstringRequired

schedule Identifier

Responses
chevron-right
204

Successful response

No content

delete
/workspace/{workspaceId}/schedule/{scheduleId}
204

Successful response

No content

patch

Modifies an instance of type schedule

Path parameters
workspaceIdstringRequired

workspace Identifier

scheduleIdstringRequired

schedule Identifier

Body
Responses
chevron-right
204

Successful response

No content

patch
/workspace/{workspaceId}/schedule/{scheduleId}
204

Successful response

No content

get

Returns an instance of type schedule

Path parameters
workspaceIdstringRequired

workspace Identifier

scheduleIdstringRequired

schedule Identifier

Query parameters
Responses
get
/workspace/{workspaceId}/schedule/{scheduleId}
200

Successful response

circle-info

For a complete list of organization operation please visit the OpenAPI specificationarrow-up-right

Last updated

Was this helpful?