Link Search Menu Expand Document

Create a Workflow

Create a workflow from providing a YAML specification.

URL: /api/namespaces/{namespace}/workflows

Method: POST

Input Provide the namespace parameter and the following input.

id: hworld
description: A simple 'no-op' state that returns 'Hello world!'
states:
  - id: helloworld
    type: noop
    transform:
      result: "Hello World!"

Success Response

Code: 200 OK

Content

{
  "id": "hworld",
  "revision": 0,
  "active": true,
  "createdAt": {
    "seconds": 1620602681,
    "nanos": 154362707
  }
}

Error Response

Code: 400 Bad Request

Content

{
    "Code": 400,
    "Message": "An error relating to the request"
}

Copyright © 2021 Vorteil.io.