Skip to main content
PUT
/
orchestration
/
releases
/
updateDraft
Update draft release
curl --request PUT \
  --url https://api.getcargo.io/v1/orchestration/releases/updateDraft \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workflowUuid": "<string>",
  "nodes": [
    {
      "uuid": "<string>",
      "slug": "<string>",
      "config": {},
      "childrenUuids": [
        "<string>"
      ],
      "fallbackOnFailure": true,
      "position": {
        "x": 123,
        "y": 123
      },
      "kind": "native",
      "actionSlug": "<string>",
      "name": "<string>",
      "description": "<string>",
      "retry": {
        "maximumAttempts": 123,
        "initialInterval": 123,
        "backoffCoefficient": 123
      },
      "fallbackChildUuid": "<string>"
    }
  ],
  "parentUuid": "<string>",
  "testRecords": [
    {
      "kind": "<string>",
      "id": "<string>",
      "data": {}
    }
  ],
  "formFields": [
    {
      "slug": "<string>",
      "name": "<string>",
      "kind": "string",
      "description": "<string>",
      "isRequired": true
    }
  ],
  "options": {
    "connectorUuidsByIntegrationSlug": {},
    "modelUuidsByIntegrationSlug": {}
  }
}
'
{
  "release": {
    "uuid": "<string>",
    "parentUuid": "<string>",
    "workspaceUuid": "<string>",
    "userUuid": "<string>",
    "workflowUuid": "<string>",
    "description": "<string>",
    "version": "<string>",
    "status": "draft",
    "templateSlug": "<string>",
    "nodes": [
      {
        "uuid": "<string>",
        "slug": "<string>",
        "config": {},
        "childrenUuids": [
          "<string>"
        ],
        "fallbackOnFailure": true,
        "position": {
          "x": 123,
          "y": 123
        },
        "kind": "native",
        "actionSlug": "<string>",
        "name": "<string>",
        "description": "<string>",
        "retry": {
          "maximumAttempts": 123,
          "initialInterval": 123,
          "backoffCoefficient": 123
        },
        "fallbackChildUuid": "<string>"
      }
    ],
    "formFields": [
      {
        "slug": "<string>",
        "name": "<string>",
        "kind": "string",
        "description": "<string>",
        "isRequired": true
      }
    ],
    "testRecords": [
      {
        "kind": "<string>",
        "id": "<string>",
        "data": {}
      }
    ],
    "deployedAt": "<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.

Body

application/json

Request body schema.

workflowUuid
string
required
nodes
object[]
parentUuid
string
testRecords
object[]
formFields
object[] | null
options
object

Response

Successful response

release
object
required