Mutation
mutation MoveWorkflow($input: MoveWorkflowInput!) {
moveWorkflow(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": {
"moveWorkflow": {
"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"
}
]
}
}
}
}Mutations
moveWorkflow
Move a workflow so it sits directly after another, or to the front of the list when afterWorkflowId is null. Only the moved workflow changes.
MUTATION
moveWorkflow(input: MoveWorkflowInput!): MoveWorkflowOutput!Arguments
input
required
Returns
workflow
The workflow that moved, carrying its new position. No other workflow changes.
error
Mutation
mutation MoveWorkflow($input: MoveWorkflowInput!) {
moveWorkflow(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": {
"moveWorkflow": {
"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?

