ruleUpdate
Updates a Rule.
mutation(
$ruleId: ID!,
$name: String!,
$description: String,
$matchType: RuleMatchTypes!,
$state: RuleState!,
$position: Int,
$conditions: [RuleConditionInput!]!,
$triggers: [TriggerInput!]!,
$actions: [ActionInput!]!,
$scheduleType: ScheduleType,
$scheduleSettings: FeatureTemplateRuleScheduleSettingsInput,
$stopUpcoming: Boolean!
) {
ruleUpdate(
input: {
ruleId: $ruleId,
name: $name,
description: $description,
matchType: $matchType,
state: $state,
position: $position,
conditions: $conditions,
triggers: $triggers,
actions: $actions,
scheduleType: $scheduleType,
scheduleSettings: $scheduleSettings,
stopUpcoming: $stopUpcoming
}
) {
rule {
id
name
}
errors {
path
message
}
}
}
ruleUpdate(
input: RuleUpdateInput!
): RuleUpdatePayload
Arguments
ruleUpdate.input ● RuleUpdateInput! non-null input common
Parameters for RuleUpdate
Type
RuleUpdatePayload object common
Autogenerated return type of RuleUpdate