Adds between 1 and 500 policy rules to the organization. Every rule in the request is validated before any is stored, so one invalid rule rejects the whole request. The server assigns each new rule's id. Each rule belongs to a group, whose name starts with a letter or digit and contains up to 128 letters, digits, dots, underscores, or hyphens. List rules with policyRulesList.
Response
Returns a RulesAddPayload!
Arguments
| Name | Description |
|---|---|
orgId - OrganizationId!
|
The Organization identifier. |
input - RulesAddInput!
|
Rules to insert. |
Example
Query
mutation policyRulesAdd(
$orgId: OrganizationId!,
$input: RulesAddInput!
) {
policyRulesAdd(
orgId: $orgId,
input: $input
) {
count
}
}
Variables
{
"orgId": "615f3b3b28284380e28a7342",
"input": RulesAddInput
}
Response
{
"data": {
"policyRulesAdd": {
"count": "-8589934592"
}
}
}