{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarify/json-schema/clarify-update-record-dto-schema.json",
  "title": "UpdateRecordDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarify-records-api-openapi.yml#/components/schemas/UpdateRecordDto",
  "type": "object",
  "properties": {
    "data": {
      "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 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"
  ]
}