Alert block
Fields
| Field | Type | Description | Required? |
|---|---|---|---|
type | String | The type of block. For an alert block, type is always alert. | Required |
text | String | The alert message, using plain_text or mrkdwn formatting. | Required |
level | Array | One of default, info, warning, error, or success. Will be default if omitted. | Optional |
block_id | String | A unique identifier for a block. If not specified, a block_id will be generated. | Optional |
Example
A sample alert block:
- JSON
{
"blocks": [
{
"type": "alert",
"text": {
"type": "mrkdwn",
"text": "The work is mysterious and important.",
"verbatim": false
},
"level": "info"
}
]
}