# Traversing a Genealogy

### Traversing Up a Genealogy

The artifacts resource includes a parent-process element that provides a URI to the process that created an artifact.

<figure><img src="/files/UcJkXIGKGWwwZFPfmHMH" alt=""><figcaption></figcaption></figure>

To facilitate walking up the genealogy, the processes resource exposes the parent process for an input artifact in the input-output-map of a process:

<figure><img src="/files/3eYyu6w6YjhJGynrptw9" alt=""><figcaption></figcaption></figure>

The parent-process element does not display if the parent process is not supported by the API.

### Traversing Down a Genealogy

The processes resource supports an inputartifactlimsid query parameter. This parameter limits the list of processes to those processes with one of the specified artifacts as an input.

1. Start with the initial sample.

   <figure><img src="/files/7DNaGYNocLgGRctyFfqh" alt=""><figcaption></figcaption></figure>
2. The processes for the sample can be queried, as follows.

   <figure><img src="/files/Wwb80fECvjUAwfhoikyy" alt=""><figcaption></figcaption></figure>
3. The process contains an input-output-map for the input artifact.

   <figure><img src="/files/OFxPifsNrsmYbfDFBP4b" alt=""><figcaption></figcaption></figure>
4. The steps can then be repeated using the LIMS ID of each output artifact that is associated with the input artifact.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.connected.illumina.com/clarity-lims/api-and-database/api-docs/rest/traversing-a-genealogy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
