{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-sales-cloud/json-schema/salesforce-sales-cloud-create-record-result-schema.json",
  "title": "CreateRecordResult",
  "description": "Result from a create, update, or delete operation",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-sales-cloud-sobject-collections-api-openapi.yml#/components/schemas/CreateRecordResult",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The ID of the created or affected record"
    },
    "success": {
      "type": "boolean",
      "description": "Whether the operation succeeded"
    },
    "errors": {
      "type": "array",
      "description": "List of errors if the operation failed",
      "items": {
        "$ref": "#/$defs/ApiError"
      }
    }
  },
  "$defs": {
    "ApiError": {
      "type": "object",
      "description": "An API error message",
      "properties": {
        "statusCode": {
          "type": "string",
          "description": "The error status code"
        },
        "message": {
          "type": "string",
          "description": "The error message"
        },
        "fields": {
          "type": "array",
          "description": "Fields related to the error",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}