Mutations
updateWorkflowRule
Update the name, payload, or display order of an existing workflow rule.
MUTATION
updateWorkflowRule(input: UpdateWorkflowRuleInput!): UpdateWorkflowRuleOutput!Arguments
input
required
Returns
workflowRule
error
Mutation
mutation UpdateWorkflowRule($input: UpdateWorkflowRuleInput!) {
updateWorkflowRule(input: $input) {
workflowRule {
id
name
payload
publishedAt {
unixTimestamp
iso8601
}
order
createdAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowRuleId": "id"
}
}Response
{
"data": {
"updateWorkflowRule": {
"workflowRule": {
"id": "id",
"name": "string",
"payload": "string",
"publishedAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"order": 1,
"createdAt": {
"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 UpdateWorkflowRule($input: UpdateWorkflowRuleInput!) {
updateWorkflowRule(input: $input) {
workflowRule {
id
name
payload
publishedAt {
unixTimestamp
iso8601
}
order
createdAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowRuleId": "id"
}
}Response
{
"data": {
"updateWorkflowRule": {
"workflowRule": {
"id": "id",
"name": "string",
"payload": "string",
"publishedAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"order": 1,
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}
