ruleCreate
Creates a Rule.
mutation(
$name: String!,
$description: String,
$matchType: RuleMatchTypes!,
$state: RuleState!,
$position: Int,
$conditions: [RuleConditionInput!]!,
$triggers: [TriggerInput!]!,
$actions: [ActionInput!]!,
$scheduleType: ScheduleType!,
$stopUpcoming: Boolean!
) {
ruleCreate(
input: {
name: $name,
description: $description,
matchType: $matchType,
state: $state,
position: $position,
conditions: $conditions,
triggers: $triggers,
actions: $actions,
scheduleType: $scheduleType,
stopUpcoming: $stopUpcoming
}
) {
rule {
id
name
}
errors {
path
message
}
}
}
ruleCreate(
input: RuleCreateInput!
): RuleCreatePayload
Arguments
ruleCreate.input ● RuleCreateInput! non-null input common
Parameters for RuleCreate
Type
RuleCreatePayload object common
Autogenerated return type of RuleCreate