Salesforce · JSON Structure

Salesforce Predict Structure

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

Predict 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

predictionDefinition predictions settings

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

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "Predict",
  "properties": {
    "predictionDefinition": {
      "type": "string"
    },
    "predictions": {
      "type": "array",
      "description": "",
      "items": {
        "type": "object",
        "properties": {
          "model": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ]
          },
          "prediction": {
            "type": "object",
            "properties": {
              "middleValues": {
                "type": "array",
                "description": "",
                "items": {
                  "type": "string"
                }
              },
              "total": {
                "type": "number"
              }
            },
            "required": [
              "middleValues",
              "total"
            ]
          },
          "prescriptions": {
            "type": "array",
            "description": "",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "model",
          "prediction",
          "prescriptions",
          "status"
        ]
      }
    },
    "settings": {
      "type": "object",
      "properties": {
        "maxMiddleValues": {
          "type": "integer"
        },
        "maxPrescriptions": {
          "type": "integer"
        },
        "prescriptionImpactPercentage": {
          "type": "integer"
        }
      },
      "required": [
        "maxMiddleValues",
        "maxPrescriptions",
        "prescriptionImpactPercentage"
      ]
    }
  },
  "required": [
    "predictionDefinition",
    "predictions",
    "settings"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}