{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarify/json-schema/clarify-update-relationship-dto-schema.json",
  "title": "UpdateRelationshipDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarify-recordrelationships-api-openapi.yml#/components/schemas/UpdateRelationshipDto",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The object type of the related record, e.g. `person`."
          },
          "id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The unique ID of the related record, or `null` to clear a to-one relationship."
          }
        },
        "required": [
          "type",
          "id"
        ]
      },
      "description": "The related records to link."
    }
  },
  "required": [
    "data"
  ]
}