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

# Link Metrics

> Link metrics to a specification.

> [!WARNING]
>
> You are reading the docs of Galtea 5.13. [Read this page in the latest version](https://docs.galtea.ai/sdk/api/specification/link-metrics.md).

## Example

```python theme={"system"}
galtea.specifications.link_metrics(
    specification_id=specification.id,
    metric_ids=[metric_id],
)
```

## Parameters

**specification\_id** `string` *required*

The ID of the specification to link metrics to.

**metric\_ids** `list[string]` *required*

List of metric IDs to link to the specification.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.