curl --request POST \
--url https://api.getcargo.io/v1/orchestration/plays \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"modelUuid": "<string>",
"changeKinds": [
"added"
],
"runCreationRule": "always",
"description": "<string>",
"filter": {
"conjonction": "or",
"groups": [
{}
]
},
"sort": [
{
"columnSlug": "<string>",
"kind": "asc"
}
],
"limit": 123,
"trackingColumnSlugs": [
"<string>"
],
"schedule": {
"type": "<string>",
"jobId": "<string>"
},
"folderUuid": "<string>"
}
'{
"play": {
"uuid": "<string>",
"workspaceUuid": "<string>",
"workflowUuid": "<string>",
"userUuid": "<string>",
"modelUuid": "<string>",
"segmentUuid": "<string>",
"changeKinds": [
"<string>"
],
"runCreationRule": "always",
"name": "<string>",
"description": "<string>",
"schedule": {
"type": "<string>",
"temporalScheduleWorkflowId": "<string>",
"meta": {}
},
"isEnabled": true,
"healthThreshold": 123,
"healthAlertActions": [
{
"actionSlug": "<string>",
"connectorUuid": "<string>",
"config": {}
}
],
"folderUuid": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}Create a new play
curl --request POST \
--url https://api.getcargo.io/v1/orchestration/plays \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"modelUuid": "<string>",
"changeKinds": [
"added"
],
"runCreationRule": "always",
"description": "<string>",
"filter": {
"conjonction": "or",
"groups": [
{}
]
},
"sort": [
{
"columnSlug": "<string>",
"kind": "asc"
}
],
"limit": 123,
"trackingColumnSlugs": [
"<string>"
],
"schedule": {
"type": "<string>",
"jobId": "<string>"
},
"folderUuid": "<string>"
}
'{
"play": {
"uuid": "<string>",
"workspaceUuid": "<string>",
"workflowUuid": "<string>",
"userUuid": "<string>",
"modelUuid": "<string>",
"segmentUuid": "<string>",
"changeKinds": [
"<string>"
],
"runCreationRule": "always",
"name": "<string>",
"description": "<string>",
"schedule": {
"type": "<string>",
"temporalScheduleWorkflowId": "<string>",
"meta": {}
},
"isEnabled": true,
"healthThreshold": 123,
"healthAlertActions": [
{
"actionSlug": "<string>",
"connectorUuid": "<string>",
"config": {}
}
],
"folderUuid": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request body schema.
Play name.
Model identifier.
Change kinds to include.
added, updated, removed, unchanged Run creation rule.
always, once, noConcurrency Play description.
Segment filter criteria.
Show child attributes
Sort criteria.
Show child attributes
Maximum number of records.
Tracking column identifiers.
Play schedule configuration.
Show child attributes
Folder identifier.
Successful response
Created play details.
Show child attributes
Was this page helpful?