{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-experience-cloud/json-schema/salesforce-experience-cloud-record-representation-schema.json",
  "title": "RecordRepresentation",
  "description": "Representation of a record with field values",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-experience-cloud-records-api-openapi.yml#/components/schemas/RecordRepresentation",
  "type": "object",
  "properties": {
    "apiName": {
      "type": "string",
      "description": "API name of the sObject type"
    },
    "childRelationships": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "eTag": {
      "type": "string",
      "description": "Entity tag for optimistic concurrency"
    },
    "fields": {
      "type": "object",
      "description": "Map of field API names to field values",
      "additionalProperties": {
        "$ref": "#/$defs/FieldValueRepresentation"
      }
    },
    "id": {
      "type": "string",
      "description": "Record ID"
    },
    "lastModifiedById": {
      "type": "string"
    },
    "lastModifiedDate": {
      "type": "string",
      "format": "date-time"
    },
    "recordTypeId": {
      "type": "string"
    },
    "recordTypeInfo": {
      "type": "object",
      "properties": {
        "available": {
          "type": "boolean"
        },
        "defaultRecordTypeMapping": {
          "type": "boolean"
        },
        "master": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "recordTypeId": {
          "type": "string"
        }
      }
    },
    "systemModstamp": {
      "type": "string",
      "format": "date-time"
    },
    "weakEtag": {
      "type": "integer"
    }
  },
  "$defs": {
    "FieldValueRepresentation": {
      "type": "object",
      "description": "Field value with display formatting",
      "properties": {
        "displayValue": {
          "type": "string",
          "description": "Formatted display value (locale-aware)"
        },
        "value": {
          "description": "Raw field value"
        }
      }
    }
  }
}