Start a workflow

put/flows/{decisionId}/revisions/{revisionId}/workflows

Starts a new workflow for the specified decision revision.

Request Samples

1

Response Samples

1{
2 "id": "WFf4f6dac9-58ec-4af0-9fa6-62279b9a8f0a",
3 "name": "Sample Decision Approval",
4 "description": "Sample Decision Approval",
5 "rootId": "WFf4f6dac9-58ec-4af0-9fa6-62279b9a8f0a",
6 "parentId": "null",
7 "parentCallActivityId": "null",
8 "definitionId": "WF34C1A571-2547-4D71-862F-7689EEFCFCFC",
9 "definitionRevision": 1,
10 "state": "running"
11}

Path Parameters

NameTypeRequiredDescription
decisionId
string
true

The identifier for the decision.

revisionId
string
true

The identifier for the decision revision.

Request Body

A list of variables to start a workflow.

A variable that is used in a workflow.

NameTypeRequiredDescription
name
string
false

The name of the workflow variable.

value
string
false

The value of the workflow variable.

type
string
false

The type of the workflow variable.

Responses

StatusMeaningDescription
200OK

The workflow was started successfully.

HeadersSchema
400Bad Request

The request was invalid.

HeadersSchema
404Not Found

The specified decision or revision was not found.

HeadersSchema