Mutation
mutation CreateWorkflowStep($input: CreateWorkflowStepInput!) {
createWorkflowStep(input: $input) {
workflowStep {
id
workflowId
type
name
payload
transitions
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowId": "id",
"type": "CONDITION",
"payload": "string",
"transitions": [
"id"
]
}
}Response
{
"data": {
"createWorkflowStep": {
"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
createWorkflowStep
Add a single step to a workflow. For bulk changes to a workflow’s step graph, prefer bulkUpsertWorkflowSteps.
MUTATION
createWorkflowStep(input: CreateWorkflowStepInput!): CreateWorkflowStepOutput!Arguments
input
required
Returns
workflowStep
error
Mutation
mutation CreateWorkflowStep($input: CreateWorkflowStepInput!) {
createWorkflowStep(input: $input) {
workflowStep {
id
workflowId
type
name
payload
transitions
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowId": "id",
"type": "CONDITION",
"payload": "string",
"transitions": [
"id"
]
}
}Response
{
"data": {
"createWorkflowStep": {
"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?

