EmailPreSendPolicy
One customer-authored pre-send policy. It runs as the check policy.<type>.<id> on every
email it applies to: the emails in its scope whose tags satisfy its tag condition (no
condition = every email in the scope). type, scope_type and scope_id are set once;
changing scope is delete + create. The tag condition may be changed.
type EmailPreSendPolicy {
id: ID!
name: String!
type: PreSendPolicyType!
scope_type: PreSendPolicyScopeType!
scope_id: ID
brand: Brand
tag_match: PreSendPolicyTagMatch
tags: [AssetTag!]!
severity: PreSendCheckSeverity!
config: JSON!
languages: [String!]
active: Boolean!
created_at: DateTime
updated_at: DateTime
created_by_user: User
}
Fields
EmailPreSendPolicy.id ● ID! non-null scalar
EmailPreSendPolicy.name ● String! non-null scalar
EmailPreSendPolicy.type ● PreSendPolicyType! non-null enum
EmailPreSendPolicy.scope_type ● PreSendPolicyScopeType! non-null enum
EmailPreSendPolicy.scope_id ● ID scalar
The Brand a BRAND policy applies to; null for an INSTANCE policy.
EmailPreSendPolicy.brand ● Brand object
EmailPreSendPolicy.tag_match ● PreSendPolicyTagMatch enum
Null when the policy has no tag condition.
EmailPreSendPolicy.tags ● [AssetTag!]! non-null object
The tags the condition reads, by name; empty without a condition.
EmailPreSendPolicy.severity ● PreSendCheckSeverity! non-null enum
EmailPreSendPolicy.config ● JSON! non-null scalar
Per-type configuration.
EmailPreSendPolicy.languages ● [String!] list scalar
Language tags the policy inspects; null means every language.
EmailPreSendPolicy.active ● Boolean! non-null scalar
EmailPreSendPolicy.created_at ● DateTime scalar
EmailPreSendPolicy.updated_at ● DateTime scalar
EmailPreSendPolicy.created_by_user ● User object
Returned By
createEmailPreSendPolicy mutation ● deleteEmailPreSendPolicy mutation ● updateEmailPreSendPolicy mutation ● workspacePreSendPolicies query
Member Of
EmailPreSendPolicyPaginator object


