Salesforce · Schema

SObjectRecord

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.

Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

Properties

Name Type Description
attributes object Metadata attributes for this SObject record, including its type and REST API URL.
Id string The 18-character globally unique Salesforce record ID.
View JSON Schema on GitHub

JSON Schema

salesforce-rest-s-object-record-schema.json 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",
  "properties": {
    "attributes": {
      "type": "object",
      "description": "Metadata attributes for this SObject record, including its type and REST API URL.\n",
      "example": "example_value",
      "properties": {
        "type": {
          "type": "string",
          "description": "The API name of the SObject type (e.g., Account, Contact)."
        },
        "url": {
          "type": "string",
          "description": "The REST API URL for this specific record.",
          "format": "uri"
        }
      },
      "required": [
        "type"
      ]
    },
    "Id": {
      "type": "string",
      "description": "The 18-character globally unique Salesforce record ID.",
      "example": "abc123"
    }
  },
  "required": [
    "attributes"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SObjectRecord"
}