Mutation
mutation ToggleWorkflowRulePublished($input: ToggleWorkflowRulePublishedInput!) {
toggleWorkflowRulePublished(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": {
"toggleWorkflowRulePublished": {
"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"
}
]
}
}
}
}Mutations
toggleWorkflowRulePublished
Toggle the published state of a workflow rule. Published rules are active and will fire automatically; unpublished rules are drafts.
MUTATION
toggleWorkflowRulePublished(input: ToggleWorkflowRulePublishedInput!): ToggleWorkflowRulePublishedOutput!Arguments
input
required
workflowRule
error
Mutation
mutation ToggleWorkflowRulePublished($input: ToggleWorkflowRulePublishedInput!) {
toggleWorkflowRulePublished(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": {
"toggleWorkflowRulePublished": {
"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?

