{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarifymedical/json-schema/clarifymedical-create-record-dto-schema.json",
  "title": "CreateRecordDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarifymedical-records-api-openapi.yml#/components/schemas/CreateRecordDto",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The resource type; matches the `object` path parameter."
        },
        "attributes": {
          "description": "Field values keyed by field name; available fields depend on the object’s schema. System fields (prefixed with a single `_`) cannot be set.",
          "type": "object",
          "properties": {},
          "additionalProperties": true
        }
      },
      "required": [
        "type",
        "attributes"
      ],
      "additionalProperties": false,
      "description": "The resource to create."
    },
    "match_on": {
      "type": "string",
      "minLength": 1,
      "description": "Enables upsert mode: the name of a unique field (marked unique in the schema, e.g. \"domains\" for companies, \"email_addresses\" for people) to match incoming records against existing ones. When a value matches exactly one existing record, the attributes are merged into it and its ID is returned instead of inserting a new row; a value that matches multiple existing records errors. Scalar unique fields match exactly; collection fields match case-insensitively. Non-unique fields are rejected."
    }
  },
  "required": [
    "data"
  ]
}