Skip to content

Performs the authorized outcome create operation.

POST
/api/workspace/workflow/configuration/workflow-definitions/{definitionId}/outcomes
curl --request POST \
--url https://example.com/api/workspace/workflow/configuration/workflow-definitions/example/outcomes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "Key": "example", "DisplayName": "example", "Description": "example", "MetaType": 0, "SortOrder": 1, "ExpectedDefinitionRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "OperationId": "example", "IsEnabled": true, "IsDefault": true }'
definitionId
required
string
access_token
string

Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.

object
Key
string
nullable
DisplayName
string
nullable
Description
string
nullable
MetaType
integer format: int32
Allowed values: 0 1 2
SortOrder
integer format: int32
ExpectedDefinitionRowVersion
string format: uuid
OperationId
string
nullable
IsEnabled
boolean
IsDefault
boolean

OK

Media typeapplication/json
object
Data
object
Outcome
object
WorkflowOutcomeId
string
nullable
WorkflowDefinitionId
string
nullable
Key
string
nullable
DisplayName
string
nullable
Description
string
nullable
MetaType
integer format: int32
Allowed values: 0 1 2
SortOrder
integer format: int32
IsDefault
boolean
CreatedAtUtc
string format: date-time
ModifiedAtUtc
string format: date-time
nullable
CreatedByUserId
string
nullable
ModifiedByUserId
string
nullable
RowVersion
string format: uuid
DefinitionRowVersion
string format: uuid
Actions
object
CanUpdate
boolean
CanEditKey
boolean
CanEditMetaType
boolean
CanDelete
boolean
IsEnabled
boolean
DefinitionRowVersion
string format: uuid
Replayed
boolean
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Outcome": {
"MetaType": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}