> ## Documentation Index
> Fetch the complete documentation index at: https://platform.atlan.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on Atlan objects, use the Atlan MCP server at https://api.atlan.com/mcp or the atlanai CLI; `atlanai --map json` prints its command map. Run a read-only identity check before any write.
> The docs MCP server at /mcp searches these docs only. It cannot read or change Atlan objects.
> SDK packages: Python `atlanai` (PyPI) and TypeScript `@atlanai/sdk` (npm). Show Python first, then TypeScript.

# Relate two artifacts

> Create or update a typed relationship between artifacts.

Use `registry__relate_artifact` to record a typed relationship.

* Required inputs: `artifact_id`, `subject_id`, and `rel_type`.
* Optional inputs: `attributes`, `session_id`, and Gateway's `rationale`.
* Effect: write; idempotent.

Both artifacts must be in the same workspace. The source kind must allow the
selected relationship type; inspect it with `registry__get_kind_schema`.
