This mutation to delete the gating rule by id.
if the gating rule is not used only we can able to delete the rule.
Sample mutation
mutation deleteGatingRule($ruleId: UUID1!) {
deleteGatingRule(ruleId: $ruleId)
}
Sample variable
{
"ruleId": "9638cb9a-c640-4c79-beba-f966782c77af"
}
Sample response
{
"data": {
"deleteGatingRule": true
}
}
Arguments
Name | Type | Description |
---|---|---|
ruleId | UUID | The token gating rule id. |
Feilds
Name | Type | Description |
---|---|---|
true or false | Boolean | Successfully delete the rule it will return true else return respective errors with false status. |