# Workflows

GET /workflows Get all workflows in the system

Response status OK (200)

array : WorkflowModel
WorkflowModel
Property name Data type Description
Uid string

Unique id of workflow

Alias string

Alias of the workflow

Label string

Label of the workflow

DefaultStateUid string

The default state of the workflow

States array : WorkflowStateModel

The states of the workflow

ProductAssignmentProductStructureUids array

Assignment of the workflow to products using the product structures

VariantAssignmentProductStructureUids array

Assignment of the workflow to variants using the product structures

CatalogueAssignmentCatalogueUids array

Assignment of the workflow to categories in the catalogues

VariantGroupAssignmentProductStructureUids array

Assignment of the workflow to variant groups using the product structures

WorkflowStateModel
Property name Data type Description
Uid string

Unique id of workflow state

Alias string

Alias of the workflow state

Label string

Label of the workflow state

Transitions array : WorkflowTransitionModel

The transitions of the workflow

Color string

The color of the state in the UI

WorkflowTransitionModel
Property name Data type Description
Uid string

Unique id of workflow transition

TransitionToStateUid string

The state it can transition to

Label string

Label of the workflow transition

Description string

Description of the workflow transition

RequiredPermission string

The required permission to use the transition


PUT /workflows Update a workflow

Request parameters

Property name Parameter type Data type Description
workflow body object : WorkflowUpdateModel

Updated workflow

WorkflowUpdateModel
Property name Data type Description
MoveEntitiesFromStateUidToStateUid object

Move entities from state uid to another state uid when e.g. deleting a state

Uid string

Unique id of workflow

Alias string

Alias of the workflow

Label string

Label of the workflow

DefaultStateUid string

The default state of the workflow

States array : WorkflowStateModel

The states of the workflow

ProductAssignmentProductStructureUids array

Assignment of the workflow to products using the product structures

VariantAssignmentProductStructureUids array

Assignment of the workflow to variants using the product structures

CatalogueAssignmentCatalogueUids array

Assignment of the workflow to categories in the catalogues

VariantGroupAssignmentProductStructureUids array

Assignment of the workflow to variant groups using the product structures

WorkflowStateModel
Property name Data type Description
Uid string

Unique id of workflow state

Alias string

Alias of the workflow state

Label string

Label of the workflow state

Transitions array : WorkflowTransitionModel

The transitions of the workflow

Color string

The color of the state in the UI

WorkflowTransitionModel
Property name Data type Description
Uid string

Unique id of workflow transition

TransitionToStateUid string

The state it can transition to

Label string

Label of the workflow transition

Description string

Description of the workflow transition

RequiredPermission string

The required permission to use the transition

Response status OK (200)

No body message is returned

POST /workflows Create a workflow

Request parameters

Property name Parameter type Data type Description
workflow body object : WorkflowModel

Workflow to create

WorkflowModel
Property name Data type Description
Uid string

Unique id of workflow

Alias string

Alias of the workflow

Label string

Label of the workflow

DefaultStateUid string

The default state of the workflow

States array : WorkflowStateModel

The states of the workflow

ProductAssignmentProductStructureUids array

Assignment of the workflow to products using the product structures

VariantAssignmentProductStructureUids array

Assignment of the workflow to variants using the product structures

CatalogueAssignmentCatalogueUids array

Assignment of the workflow to categories in the catalogues

VariantGroupAssignmentProductStructureUids array

Assignment of the workflow to variant groups using the product structures

WorkflowStateModel
Property name Data type Description
Uid string

Unique id of workflow state

Alias string

Alias of the workflow state

Label string

Label of the workflow state

Transitions array : WorkflowTransitionModel

The transitions of the workflow

Color string

The color of the state in the UI

WorkflowTransitionModel
Property name Data type Description
Uid string

Unique id of workflow transition

TransitionToStateUid string

The state it can transition to

Label string

Label of the workflow transition

Description string

Description of the workflow transition

RequiredPermission string

The required permission to use the transition

Response status OK (200)

No body message is returned

GET /workflows/{uid} Get a workflow

Request parameters

Property name Parameter type Data type Description
uid path string

Id of workflow to get

Response status OK (200)

object : WorkflowModel
WorkflowModel
Property name Data type Description
Uid string

Unique id of workflow

Alias string

Alias of the workflow

Label string

Label of the workflow

DefaultStateUid string

The default state of the workflow

States array : WorkflowStateModel

The states of the workflow

ProductAssignmentProductStructureUids array

Assignment of the workflow to products using the product structures

VariantAssignmentProductStructureUids array

Assignment of the workflow to variants using the product structures

CatalogueAssignmentCatalogueUids array

Assignment of the workflow to categories in the catalogues

VariantGroupAssignmentProductStructureUids array

Assignment of the workflow to variant groups using the product structures

WorkflowStateModel
Property name Data type Description
Uid string

Unique id of workflow state

Alias string

Alias of the workflow state

Label string

Label of the workflow state

Transitions array : WorkflowTransitionModel

The transitions of the workflow

Color string

The color of the state in the UI

WorkflowTransitionModel
Property name Data type Description
Uid string

Unique id of workflow transition

TransitionToStateUid string

The state it can transition to

Label string

Label of the workflow transition

Description string

Description of the workflow transition

RequiredPermission string

The required permission to use the transition


DELETE /workflows/{uid} Delete a workflow

Request parameters

Property name Parameter type Data type Description
uid path string

Id of workflow to delete

Response status OK (200)

No body message is returned