{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-atlas-relationship-schema.json",
  "title": "AtlasRelationship",
  "description": "A relationship between entities",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-relationship-api-openapi.yml#/components/schemas/AtlasRelationship",
  "type": "object",
  "properties": {
    "attributes": {
      "type": "object",
      "additionalProperties": true
    },
    "typeName": {
      "type": "string"
    },
    "lastModifiedTS": {
      "type": "string"
    },
    "createTime": {
      "type": "integer",
      "format": "int64"
    },
    "createdBy": {
      "type": "string"
    },
    "end1": {
      "$ref": "#/$defs/AtlasObjectId"
    },
    "end2": {
      "$ref": "#/$defs/AtlasObjectId"
    },
    "guid": {
      "type": "string",
      "format": "uuid"
    },
    "homeId": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "provenanceType": {
      "type": "integer",
      "format": "int32"
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "DELETED"
      ]
    },
    "updateTime": {
      "type": "integer",
      "format": "int64"
    },
    "updatedBy": {
      "type": "string"
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  },
  "$defs": {
    "AtlasObjectId": {
      "type": "object",
      "properties": {
        "guid": {
          "type": "string",
          "format": "uuid"
        },
        "typeName": {
          "type": "string"
        },
        "uniqueAttributes": {
          "type": "object",
          "additionalProperties": true
        }
      }
    }
  }
}