Salesforce · JSON Structure

Salesforce Rest S Object Record Structure

A Salesforce SObject record. Contains an attributes object describing the record type and URL, plus any number of field name/value pairs depending on the object type.

Type: object Properties: 2 Required: 1
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

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

Properties

attributes Id

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

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "A Salesforce SObject record. Contains an attributes object describing the record type and URL, plus any number of field name/value pairs depending on the object type.\n",
  "name": "SObjectRecord",
  "properties": {
    "attributes": {
      "type": "object",
      "description": "Metadata attributes for this SObject record, including its type and REST API URL.\n",
      "properties": {
        "type": {
          "type": "string",
          "description": "The API name of the SObject type (e.g., Account, Contact)."
        },
        "url": {
          "type": "uri",
          "description": "The REST API URL for this specific record."
        }
      },
      "required": [
        "type"
      ]
    },
    "Id": {
      "type": "string",
      "description": "The 18-character globally unique Salesforce record ID."
    }
  },
  "required": [
    "attributes"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}