Skip to content
gist.link ↗

createEmailRule

Mutation Support API — POST https://support.api.gist.link/graphql

Create an email routing rule. ROLE_ADMIN.

support:mutation:createEmailRule

The calling IAM key must hold this permission (or a wildcard that covers it: support:mutation:* or support:*) and the access token must have been minted with audience=support. See Permissions.

type Mutation {
createEmailRule(input: CreateEmailRuleInput!): EmailRule!
}
Argument Type Required Description
input CreateEmailRuleInput! Yes —

EmailRule! — see the Support types reference.

Terminal window
curl https://support.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CreateEmailRule($input: CreateEmailRuleInput!) { createEmailRule(input: $input) { id name created_at updated_at } }",
"variables": {
"input": {
"name": "Example",
"match_type": "example",
"pattern": "example"
}
}
}
JSON