{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/notify/v1/slack-request.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Request to send a message to a Slack channel. The most interesting field in\nthis request is the `blocks` field which allows you to specify advanced\ndisplay layout for messages. This is best understood via the Slack API\ndocumentation.\n",
  "properties": {
    "attachments": {
      "description": "An array of Slack attachments. See https://api.slack.com/messaging/composing/layouts#attachments.\n",
      "type": "array"
    },
    "blocks": {
      "description": "An array of Slack layout blocks. See https://api.slack.com/reference/block-kit/blocks.\n",
      "type": "array"
    },
    "channelId": {
      "description": "The unique Slack channel ID, such as `C123456GZ`.\nIn the app, this is the last section of the 'copy link' URL for a channel.\n",
      "type": "string"
    },
    "text": {
      "description": "The main message text. If no blocks are included, this is used as the\nmessage text, otherwise this is used as alternative text and the blocks\nare used.\n",
      "type": "string"
    }
  },
  "required": [
    "channelId",
    "text"
  ],
  "title": "Send Slack Message",
  "type": "object"
}