CreateMessageBlock
Signature
mutation {
CreateMessageBlock(localizedContent: ..., enabled: ...)
}
Retourne : MessageBlock
Arguments
| Nom | Type | Requis | Défaut | Description |
|---|---|---|---|---|
name | String | — | Name of the message block. If not provided, defaults to configuration.partner_name. This parameter will be required starting April 2026. | |
localizedContent | [LocalizedStringInput]! | ✓ | — | — |
localizedName | [LocalizedStringInput] | — | — | |
enabled | Boolean! | ✓ | — | — |
displayConditions | [MessageBlockDisplayCondition] | — | — | |
segments | [ID] | — | — | |
sortIndex | Int | — | — |
Exemple
mutation {
CreateMessageBlock(
localizedContent: $localizedContent
enabled: $enabled
) {
# Sélectionner les champs souhaités
}
}