Skip to main content
PUT
/
orchestration
/
plays
/
{uuid}
Update play
curl --request PUT \
  --url https://api.getcargo.io/v1/orchestration/plays/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "isEnabled": true,
  "filter": {
    "conjonction": "or",
    "groups": [
      {}
    ]
  },
  "sort": [
    {
      "columnSlug": "<string>",
      "kind": "asc"
    }
  ],
  "limit": 123,
  "trackingColumnSlugs": [
    "<string>"
  ],
  "changeKinds": [
    "added"
  ],
  "runCreationRule": "always",
  "schedule": {
    "type": "<string>",
    "jobId": "<string>"
  },
  "healthThreshold": 123,
  "healthAlertActions": [
    {
      "actionSlug": "<string>",
      "connectorUuid": "<string>",
      "config": {}
    }
  ],
  "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>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uuid
string
required

Resource UUID

Body

application/json

Request body schema.

name
string

Play name.

description
string | null

Play description.

isEnabled
boolean

Whether the play is enabled.

filter
Filter · object

Segment filter criteria.

sort
Sort · object[] | null

Sort criteria.

limit
number | null

Maximum number of records.

trackingColumnSlugs
string[] | null

Tracking column identifiers.

changeKinds
enum<string>[]

Change kinds to include.

Available options:
added,
updated,
removed,
unchanged
runCreationRule
enum<string>

Run creation rule.

Available options:
always,
once,
noConcurrency
schedule
Schedule · object

Play schedule configuration.

healthThreshold
number

Health threshold for alerts.

healthAlertActions
Health alert actions · object[]

Health alert actions configuration.

folderUuid
string | null

Folder identifier.

Response

Successful response

play
Play · object
required

Updated play details.