Bulk create workflows

Base URL
https://{kibana_url}
  • POST /api/workflows
  • POST /s/{space_id}/api/workflows
Auth

Create multiple workflows in a single request. Optionally overwrite existing workflows.

Required authorization

Privileges workflowsManagement:create and workflowsManagement:update

Path parameters

space_id string optional

An identifier for the space. If space_id is not provided in the URL, the default space is used. Refer to Spaces for more information.

Query parameters

overwrite boolean · default: false

Whether to overwrite existing workflows.

dryRun boolean · default: false

When true, performs a preflight conflict check only. Returns the subset of the supplied workflow IDs that already exist (including soft-deleted tombstones and cross-space documents) without writing anything. The response body is { existingIds: string[] } instead of the normal { created, failed } shape.

Header parameters

kbn-xsrf string required

A required header to protect against CSRF attacks

Request body

workflows object[] · max items: 500 required
id string · min length: 3 · max length: 255 · pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
yaml string · max length: 1048576 required

Response

200

Indicates a successful response

application/json
Base URL
https://{kibana_url}