younifyd
Menu

Create Workflow

Create a workflow

POST/v2/projects/{environment_id}/workflows

Use it in a workflow

  1. Add a step and choose the Kontent.ai connector.
  2. Pick the Create Workflow action (under Workflows).
  3. Fill in the fields below, then reference the result from later steps as {{createWorkflow.response.data}}.

Request

Path parameters

environment_idstringrequired

Environment (project) ID.

Request body

Enter the body as JSON in the step's Body field.

namestringrequired
codenamestring
scopesarray<object>required
stepsarray<object>required
published_stepobjectrequired
archived_stepobjectrequired
json
{
  "name": "string",
  "scopes": [
    {}
  ],
  "steps": [
    {}
  ],
  "published_step": {},
  "archived_step": {},
  "codename": "string"
}

Response

Returns 201 with an object. Read it in later steps with {{createWorkflow.response.data.<field>}}.

Need more? See the Kontent.ai guide for connection setup and behaviour shared by every action.