v2
latestOpenAPI 3.0.02026-07-31226285.0 KBWorkflows
createDefinition
Create a new V1 workflow definition. The definition consists of sections and steps that define the structure of the workflow. Once created, the definition can be used to start workflow executions.
post/v1/workflows/definitions
Request body
Example request
{
"creationTime": "2021-04-27T12:01:13.000Z",
"lastUpdateTime": "2021-04-27T12:01:13.000Z",
"dueDate": "2021-04-27T12:00:00.000Z",
"flow": [
{
"dueDate": "2021-04-27T12:00:00.000Z",
"steps": [
{
"dueDate": "2021-04-27T12:00:00.000Z"
}
]
}
],
"closingReasons": [
{
"id": "x739cew"
}
],
"updateEntityAttributes": [
{
"target": {
"entitySchema": "opportunity",
"entityAttribute": "my_status"
}
}
]
}Response
Success - if the definition is created successfully
Example response
{
"creationTime": "2021-04-27T12:01:13.000Z",
"lastUpdateTime": "2021-04-27T12:01:13.000Z",
"dueDate": "2021-04-27T12:00:00.000Z",
"flow": [
{
"dueDate": "2021-04-27T12:00:00.000Z",
"steps": [
{
"dueDate": "2021-04-27T12:00:00.000Z"
}
]
}
],
"closingReasons": [
{
"id": "x739cew"
}
],
"updateEntityAttributes": [
{
"target": {
"entitySchema": "opportunity",
"entityAttribute": "my_status"
}
}
]
}