Mutation
mutation UpdateWorkflowStep($input: UpdateWorkflowStepInput!) {
updateWorkflowStep(input: $input) {
workflowStep {
id
workflowId
type
name
payload
transitions
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"stepId": "id"
}
}Response
{
"data": {
"updateWorkflowStep": {
"workflowStep": {
"id": "id",
"workflowId": "id",
"type": "CONDITION",
"name": "string",
"payload": "string",
"transitions": [
"id"
]
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateWorkflowStep
Update a single workflow step’s configuration, transitions, or canvas position. Replacing transitions is a full replacement of the array.
MUTATION
updateWorkflowStep(input: UpdateWorkflowStepInput!): UpdateWorkflowStepOutput!Arguments
input
required
Returns
workflowStep
error
Mutation
mutation UpdateWorkflowStep($input: UpdateWorkflowStepInput!) {
updateWorkflowStep(input: $input) {
workflowStep {
id
workflowId
type
name
payload
transitions
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"stepId": "id"
}
}Response
{
"data": {
"updateWorkflowStep": {
"workflowStep": {
"id": "id",
"workflowId": "id",
"type": "CONDITION",
"name": "string",
"payload": "string",
"transitions": [
"id"
]
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

