Workflows
GET /v1/workflows HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
OK
[
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"DefaultStateUid": "123e4567-e89b-12d3-a456-426614174000",
"States": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"Transitions": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"TransitionToStateUid": "123e4567-e89b-12d3-a456-426614174000",
"Label": "text",
"Description": "text",
"RequiredPermission": "123e4567-e89b-12d3-a456-426614174000"
}
],
"Color": "text"
}
],
"ProductAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"VariantAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"CatalogueAssignmentCatalogueUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"AssetAssignmentAssetTypeUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"VariantGroupAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
]
Model used to create a new workflow
Unique id of workflow
Alias of the workflow
Label of the workflow
The default state of the workflow
Assignment of the workflow to products using the product structures
Assignment of the workflow to variants using the product structures
Assignment of the workflow to categories in the catalogues
Assignment of the workflow to asset types
Assignment of the workflow to variant groups using the product structures
POST /v1/workflows HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 853
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"DefaultStateUid": "123e4567-e89b-12d3-a456-426614174000",
"States": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"Transitions": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"TransitionToStateUid": "123e4567-e89b-12d3-a456-426614174000",
"Label": "text",
"Description": "text",
"RequiredPermission": "123e4567-e89b-12d3-a456-426614174000"
}
],
"Color": "text"
}
],
"ProductAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"VariantAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"CatalogueAssignmentCatalogueUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"AssetAssignmentAssetTypeUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"VariantGroupAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
123e4567-e89b-12d3-a456-426614174000
Model used to create a new workflow
Unique id of workflow
Alias of the workflow
Label of the workflow
The default state of the workflow
Assignment of the workflow to products using the product structures
Assignment of the workflow to variants using the product structures
Assignment of the workflow to categories in the catalogues
Assignment of the workflow to asset types
Assignment of the workflow to variant groups using the product structures
PUT /v1/workflows HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 957
{
"MoveEntitiesFromStateUidToStateUid": {
"ANY_ADDITIONAL_PROPERTY": "123e4567-e89b-12d3-a456-426614174000"
},
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"DefaultStateUid": "123e4567-e89b-12d3-a456-426614174000",
"States": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"Transitions": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"TransitionToStateUid": "123e4567-e89b-12d3-a456-426614174000",
"Label": "text",
"Description": "text",
"RequiredPermission": "123e4567-e89b-12d3-a456-426614174000"
}
],
"Color": "text"
}
],
"ProductAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"VariantAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"CatalogueAssignmentCatalogueUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"AssetAssignmentAssetTypeUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"VariantGroupAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
123e4567-e89b-12d3-a456-426614174000
Id of workflow to get
GET /v1/workflows/{uid} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"DefaultStateUid": "123e4567-e89b-12d3-a456-426614174000",
"States": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"Alias": "text",
"Label": "text",
"Transitions": [
{
"Uid": "123e4567-e89b-12d3-a456-426614174000",
"TransitionToStateUid": "123e4567-e89b-12d3-a456-426614174000",
"Label": "text",
"Description": "text",
"RequiredPermission": "123e4567-e89b-12d3-a456-426614174000"
}
],
"Color": "text"
}
],
"ProductAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"VariantAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"CatalogueAssignmentCatalogueUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"AssetAssignmentAssetTypeUids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"VariantGroupAssignmentProductStructureUids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}