Salesforce · JSON Structure

Salesforce Header Structure

Type: object Properties: 3 Required: 3
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

Header is a JSON Structure definition published by Salesforce, describing 3 properties, of which 3 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

isRichText messageSegments text

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "Header",
  "properties": {
    "isRichText": {
      "type": "['string', 'null']"
    },
    "messageSegments": {
      "type": "array",
      "description": "",
      "items": {
        "type": "object",
        "properties": {
          "motif": {
            "type": "object",
            "properties": {
              "color": {
                "type": "string"
              },
              "largeIconUrl": {
                "type": "string"
              },
              "mediumIconUrl": {
                "type": "string"
              },
              "smallIconUrl": {
                "type": "string"
              },
              "svgIconUrl": {
                "type": "['string', 'null']"
              }
            },
            "required": [
              "color",
              "largeIconUrl",
              "mediumIconUrl",
              "smallIconUrl",
              "svgIconUrl"
            ]
          },
          "reference": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "url"
            ]
          },
          "text": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "motif",
          "reference",
          "text",
          "type"
        ]
      }
    },
    "text": {
      "type": "string"
    }
  },
  "required": [
    "isRichText",
    "messageSegments",
    "text"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}