ProposeDesign
POST
/api/v1/t/{tenant}/intelligence/workflow-design/conversations/{definitionId}/proposals
const url = 'https://example.com/api/v1/t/example/intelligence/workflow-design/conversations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/proposals';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"package":"example","workflow":"example","setup":[{"tool":"example","arguments":"example","ref":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/t/example/intelligence/workflow-design/conversations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/proposals \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "package": "example", "workflow": "example", "setup": [ { "tool": "example", "arguments": "example", "ref": "example" } ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”tenant
required
string
Tenant slug
definitionId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
package
required
null | string
workflow
required
null | string
setup
required
Array<object> | null
object
tool
required
string
arguments
required
ref
required
null | string
Examplegenerated
{ "package": "example", "workflow": "example", "setup": [ { "tool": "example", "arguments": "example", "ref": "example" } ]}Responses
Section titled “ Responses ”OK
Media typeapplication/json
object
turnId
required
string format: uuid
proposal
required
object
definition
required
object
schemaVersion
required
integer format: int32
startStep
required
string
steps
required
Array<object>
Any of: discriminator: kind
object
kind
required
string
taskKind
required
assignees
required
Array<object>
object
when
required
One of:
null
Any of: discriminator: kind
object
kind
required
string
conditions
required
Array<object> recursive
object
kind
required
string
conditions
required
assignee
required
object
kind
required
userId
null | string format: uuid
roleId
null | string format: uuid
table
null | string
groupId
null | string format: uuid
fallback
required
object
kind
required
userId
null | string format: uuid
roleId
null | string format: uuid
table
null | string
groupId
null | string format: uuid
options
required
object
remindAfterWorkingDays
required
null | integer format: int32
escalateAfterWorkingDays
required
null | integer format: int32
escalationTarget
required
excludeRequester
required
boolean
excludeActorsOfSteps
required
Array<string>
pickFile
boolean
next
required
string
onRejected
null | string
parallelApproval
name
required
string
label
null | string
object
kind
required
string
branches
required
Array<object>
object
when
required
Any of: discriminator: kind
object
kind
required
string
conditions
required
Array<object> recursive
object
kind
required
string
conditions
required
next
required
string
default
required
string
name
required
string
label
null | string
object
kind
required
string
next
required
string
days
null | integer format: int32
dateField
null | string
daysBefore
integer format: int32
name
required
string
label
null | string
object
kind
required
string
next
required
string
recipients
required
Array<object>
object
kind
required
userId
null | string format: uuid
roleId
null | string format: uuid
table
null | string
groupId
null | string format: uuid
notice
required
name
required
string
label
null | string
object
kind
required
string
next
required
string
fileId
required
null | string format: uuid
tagIds
required
Array<string>
byField
onCreated
null | string
onNoFile
null | string
name
required
string
label
null | string
object
kind
required
string
next
required
string
action
required
allowConfidential
boolean
onSkipped
null | string
deviationPercent
null | integer format: int32
name
required
string
label
null | string
object
kind
required
string
outcome
required
name
required
string
label
null | string
object
kind
required
string
script
required
string
hook
required
returns
required
Array<object>
object
key
required
string
type
required
values
required
Array<string>
branch
required
null | string
exits
required
Array<object>
object
value
required
string
next
required
string
next
required
string
onFailure
null | string
name
required
string
label
null | string
object
kind
required
string
assignments
required
next
required
string
name
required
string
label
null | string
object
kind
required
string
instruction
required
string
fields
required
Array<string>
readText
required
boolean
answer
required
choices
required
Array<string>
next
required
string
suggestField
null | string
allowConfidential
boolean
onSkipped
null | string
name
required
string
label
null | string
object
kind
required
string
waitFor
required
field
required
string
documentTypeId
required
null | string format: uuid
otherField
required
null | string
timeoutDays
required
integer format: int32
next
required
string
onTimeout
required
string
startStep
null | string
name
required
string
label
null | string
object
kind
required
string
definitionId
required
string format: uuid
next
required
string
name
required
string
label
null | string
object
kind
required
string
templateId
required
string format: uuid
recipient
required
next
required
string
onSkipped
required
string
language
string
recipientField
null | string
allowConfidential
boolean
allowAiRecipient
boolean
name
required
string
label
null | string
object
kind
required
string
endpoint
required
string
event
required
string
fields
required
Array<string>
next
required
string
onSkipped
required
string
allowConfidential
boolean
name
required
string
label
null | string
object
kind
required
string
leadDays
required
integer format: int32
next
required
string
onMissed
required
string
onNone
required
string
name
required
string
label
null | string
object
kind
required
string
check
required
next
required
string
onDeviation
required
string
onNotFound
null | string
order
contract
name
required
string
label
null | string
object
kind
required
string
signers
required
Array<object>
object
kind
required
label
required
string
userId
null | string format: uuid
firstNameField
null | string
lastNameField
null | string
emailField
null | string
mobileField
null | string
level
required
fieldMode
required
reviewer
required
object
kind
required
userId
null | string format: uuid
roleId
null | string format: uuid
table
null | string
groupId
null | string format: uuid
next
required
string
onDeclined
required
string
onExpired
required
string
onSkipped
required
string
ordered
boolean
expiryDays
integer format: int32
allowConfidential
boolean
language
string
name
required
string
label
null | string
object
kind
required
string
templateDocumentId
required
string format: uuid
mapping
required
Array<object>
object
targetKey
required
string
source
required
sourceKey
null | string
constant
null | string
title
required
string
filing
required
next
required
string
onSkipped
required
string
fileId
null | string format: uuid
startDefinitionId
null | string format: uuid
targetDocumentTypeId
null | string format: uuid
name
required
string
label
null | string
fields
Array<object> | null
object
key
required
string
kind
required
labelDe
required
string
labelEn
required
string
documentTypeIds
required
Array<string>
options
Array<object> | null
object
key
required
string
labelDe
required
string
labelEn
required
string
baseDraftVersion
required
null | integer format: uint32
stale
required
boolean
setup
required
Array<object>
object
id
required
string format: uuid
kind
required
state
required
placeholder
required
string
spec
required
createdId
required
null | string format: uuid
missingPermission
required
null | string
missingPlan
required
null | string
revision
integer format: int32
proposedBy
scripts
required
Array<object>
object
fileName
required
string
source
required
string
diagnostics
required
Array<object>
object
code
required
string
severity
required
message
required
string
line
required
integer format: int32
column
required
integer format: int32
endLine
required
integer format: int32
endColumn
required
integer format: int32
setFields
required
Array<string>
errors
required
object
key
additional properties
triggerDocumentTypeId
null | string format: uuid
cards
required
Array<object>
object
ref
required
null | string
itemId
required
string format: uuid
kind
required
placeholder
required
string
Example
{ "proposal": { "definition": { "steps": [ { "kind": "humanTask", "taskKind": "Approve", "assignees": [ { "when": { "kind": "compare", "value": "LastTaskOutcome", "operator": "EqualTo" }, "assignee": { "kind": "Member" } } ], "fallback": { "kind": "Member" }, "options": { "escalationTarget": { "kind": "Member" }, "pickFile": false }, "parallelApproval": { "mode": "All", "approvers": [ { "kind": "Member" } ] } } ], "fields": [ { "kind": "Text" } ], "deadlineTrigger": { "stage": "Reminder", "kind": "End" } }, "setup": [ { "kind": "ApprovalGroup", "state": "Proposed", "revision": 0, "proposedBy": { "kind": "Model" }, "editedBy": { "kind": "Model" } } ], "scripts": [ { "diagnostics": [ { "severity": "Error" } ] } ], "base": { "startMoved": false } }, "cards": [ { "kind": "ApprovalGroup" } ]}Bad Request
Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Forbidden
Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Conflict
Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Payload Too Large
Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Too Many Requests
Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}