Salesforce · JSON Structure

Salesforce Message Segment1 Structure

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

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

Properties

motif reference text type

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

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "MessageSegment1",
  "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"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}