Pipeline schedules
Create pipeline schedule
curl --request POST
-H 'Content-Type: application/json'
-H 'Cookie: oauth_token=some_really_long_string'
-H 'X-API-KEY: zkWlN0PkIKSN0C11CfUHUj84OT5XOJ6tDZ6bDRO2'
-d '{
"pipeline_schedule": {
"name": "Example Pipeline Schedule Name",
"schedule_type": "time",
"schedule_interval": "@once",
"start_time": "2023-03-06 04:53:00",
"variables": {
"env": "dev112222",
"test": 11111
},
"sla": 1000,
"settings": {
"allow_blocks_to_fail": true,
"create_initial_pipeline_run": false,
"skip_if_previous_running": true,
"timeout": 3600
},
"tags": ["core data"]
}
}'
--url http://localhost:6789/api/pipelines/example_pipeline/pipeline_schedules
{
"pipeline_schedule": {
"id": 55,
"created_at": "2023-03-08 04:52:54.268096+00:00",
"updated_at": "2023-04-01 00:52:11.753497+00:00",
"name": "Example Pipeline Schedule Name",
"next_pipeline_run_date": null,
"pipeline_uuid": "example_pipeline",
"schedule_type": "time",
"start_time": "2023-03-06 04:53:00+00:00",
"schedule_interval": "@once",
"status": "inactive",
"variables": {
"env": "dev112222",
"test": 11111
},
"sla": 1000,
"token": "67d62ed3e66143839f58945bb7d16387",
"settings": {
"allow_blocks_to_fail": true,
"create_initial_pipeline_run": false,
"skip_if_previous_running": true,
"timeout": 3600
},
"tags": ["core data"]
}
}
POST /api/pipelines/:pipeline_uuid/pipeline_schedules
string
required
Pipeline UUID that the pipeline schedule should all belong to.
object
required
Hide payload
Hide payload
string
required
Trigger names are trimmed before validation. The name must include at least one letter or
number, cannot exceed 255 characters, and must be unique within the pipeline.
string
string
Required when
schedule_type is time.string
Trigger type:
api or time.object
Additional settings for the trigger.
Show properties
Show properties
integer
Optional run timeout in seconds. When provided, the value must be a positive integer.
Use
null or omit this field for no timeout.integer
Optional SLA threshold in seconds. When provided, the value must be a positive integer.
Use
0, null, or omit this field for no SLA.datetime
Persisted schedule start timestamp. For
@once, this value determines the single run time;
for recurring time schedules, it anchors when the schedule begins.string
array of strings
Non-empty tag names to associate with the trigger. Tag names are trimmed and duplicate names
are ignored before persistence. Each tag name cannot exceed 70 characters.
object
This endpoint creates supported Schedule and API triggers. Use
time for Schedule triggers and
api for API triggers. Event trigger creation is deprecated. Creating a trigger accepts the same
configuration payload used by the trigger creation UI, including tags, settings, runtime
variables, SLA, and status. curl --request POST
-H 'Content-Type: application/json'
-H 'Cookie: oauth_token=some_really_long_string'
-H 'X-API-KEY: zkWlN0PkIKSN0C11CfUHUj84OT5XOJ6tDZ6bDRO2'
-d '{
"pipeline_schedule": {
"name": "Example Pipeline Schedule Name",
"schedule_type": "time",
"schedule_interval": "@once",
"start_time": "2023-03-06 04:53:00",
"variables": {
"env": "dev112222",
"test": 11111
},
"sla": 1000,
"settings": {
"allow_blocks_to_fail": true,
"create_initial_pipeline_run": false,
"skip_if_previous_running": true,
"timeout": 3600
},
"tags": ["core data"]
}
}'
--url http://localhost:6789/api/pipelines/example_pipeline/pipeline_schedules
{
"pipeline_schedule": {
"id": 55,
"created_at": "2023-03-08 04:52:54.268096+00:00",
"updated_at": "2023-04-01 00:52:11.753497+00:00",
"name": "Example Pipeline Schedule Name",
"next_pipeline_run_date": null,
"pipeline_uuid": "example_pipeline",
"schedule_type": "time",
"start_time": "2023-03-06 04:53:00+00:00",
"schedule_interval": "@once",
"status": "inactive",
"variables": {
"env": "dev112222",
"test": 11111
},
"sla": 1000,
"token": "67d62ed3e66143839f58945bb7d16387",
"settings": {
"allow_blocks_to_fail": true,
"create_initial_pipeline_run": false,
"skip_if_previous_running": true,
"timeout": 3600
},
"tags": ["core data"]
}
}
Was this page helpful?
⌘I
curl --request POST
-H 'Content-Type: application/json'
-H 'Cookie: oauth_token=some_really_long_string'
-H 'X-API-KEY: zkWlN0PkIKSN0C11CfUHUj84OT5XOJ6tDZ6bDRO2'
-d '{
"pipeline_schedule": {
"name": "Example Pipeline Schedule Name",
"schedule_type": "time",
"schedule_interval": "@once",
"start_time": "2023-03-06 04:53:00",
"variables": {
"env": "dev112222",
"test": 11111
},
"sla": 1000,
"settings": {
"allow_blocks_to_fail": true,
"create_initial_pipeline_run": false,
"skip_if_previous_running": true,
"timeout": 3600
},
"tags": ["core data"]
}
}'
--url http://localhost:6789/api/pipelines/example_pipeline/pipeline_schedules
{
"pipeline_schedule": {
"id": 55,
"created_at": "2023-03-08 04:52:54.268096+00:00",
"updated_at": "2023-04-01 00:52:11.753497+00:00",
"name": "Example Pipeline Schedule Name",
"next_pipeline_run_date": null,
"pipeline_uuid": "example_pipeline",
"schedule_type": "time",
"start_time": "2023-03-06 04:53:00+00:00",
"schedule_interval": "@once",
"status": "inactive",
"variables": {
"env": "dev112222",
"test": 11111
},
"sla": 1000,
"token": "67d62ed3e66143839f58945bb7d16387",
"settings": {
"allow_blocks_to_fail": true,
"create_initial_pipeline_run": false,
"skip_if_previous_running": true,
"timeout": 3600
},
"tags": ["core data"]
}
}