{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarifymedical/json-schema/clarifymedical-update-records-dto-schema.json",
  "title": "UpdateRecordsDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarifymedical-records-api-openapi.yml#/components/schemas/UpdateRecordsDto",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The resource type; matches the `object` path parameter."
          },
          "id": {
            "type": "string",
            "description": "The unique ID of the resource to update."
          },
          "attributes": {
            "description": "The field values to change, keyed by field name; omitted fields keep their current values. System fields (prefixed with a single `_`) cannot be set.",
            "type": "object",
            "properties": {},
            "additionalProperties": true
          }
        },
        "required": [
          "type",
          "id",
          "attributes"
        ],
        "additionalProperties": false
      },
      "description": "The per-resource changes to apply."
    },
    "meta": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "collection": {
            "type": "string",
            "enum": [
              "append",
              "remove",
              "replace"
            ],
            "description": "How to apply the update to a collection field: `append` adds items, `remove` deletes items, `replace` overwrites the collection (the default)."
          },
          "array": {
            "type": "string",
            "enum": [
              "append"
            ],
            "description": "How to apply the update to an array field: `append` adds items rather than replacing the array."
          },
          "object": {
            "type": "string",
            "enum": [
              "merge"
            ],
            "description": "How to apply the update to an object field: `merge` combines keys rather than replacing the object."
          }
        }
      },
      "description": "Per-field write strategies, keyed by field name; controls how array, collection, and object values are merged instead of replaced."
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}