> For the complete documentation index, see [llms.txt](https://help.claritylims.illumina.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.claritylims.illumina.com/api-and-database/api-docs/rest/traversing-a-genealogy.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.claritylims.illumina.com/api-and-database/api-docs/rest/traversing-a-genealogy.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
