Mutations
updateWorkflow
Update a workflow’s name, trigger configuration, entry step, display order, or published status.
MUTATION
updateWorkflow(input: UpdateWorkflowInput!): UpdateWorkflowOutput!Arguments
input
required
Returns
workflow
error
Mutation
mutation UpdateWorkflow($input: UpdateWorkflowInput!) {
updateWorkflow(input: $input) {
workflow {
id
name
trigger
startStepId
steps {
id
workflowId
type
name
payload
transitions
}
publishedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowId": "id"
}
}Response
{
"data": {
"updateWorkflow": {
"workflow": {
"id": "id",
"name": "string",
"trigger": "string",
"startStepId": "id",
"steps": [
{
"id": "id",
"workflowId": "id",
"type": "CONDITION",
"name": "string",
"payload": "string",
"transitions": [
"id"
]
}
],
"publishedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?
⌘I
Mutation
mutation UpdateWorkflow($input: UpdateWorkflowInput!) {
updateWorkflow(input: $input) {
workflow {
id
name
trigger
startStepId
steps {
id
workflowId
type
name
payload
transitions
}
publishedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowId": "id"
}
}Response
{
"data": {
"updateWorkflow": {
"workflow": {
"id": "id",
"name": "string",
"trigger": "string",
"startStepId": "id",
"steps": [
{
"id": "id",
"workflowId": "id",
"type": "CONDITION",
"name": "string",
"payload": "string",
"transitions": [
"id"
]
}
],
"publishedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}
