Skip to main content
Create a new workflow or playground definition.

POST /revisions/:id/data/command (Command: create_definition)

Request Body

ParameterTypeRequiredDescription
enginestringYesMust be workflow_blobhub.
commandstringYesMust be create_definition.
aliasstringYesUnique alias for the definition (6-42 chars).
categorystringYesworkflow or playground.

Response

ParameterTypeDescription
definitionobjectThe created definition object.

Example

{
  "engine": "workflow_blobhub",
  "command": "create_definition",
  "alias": "data-process",
  "category": "workflow"
}
{
  "definition": {
    "id": "def_001",
    "alias": "data-process",
    "category": "workflow"
  }
}