> For the complete documentation index, see [llms.txt](https://docs.fylr.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fylr.io/for-developers/export.md).

# Export

## Assets

### eas\_fields

Check if the field name is requested in **eas\_fields**. If yes, proceed.

### assets

1. Check for a rule in **assets**. A rule applies if any file in the array of files has an explicit rule.
2. If a rule applies but no explicit rule is defined, the file is exported only if it is *preferred*.
3. The explicit rule **false**, says to not export the file.
4. The explicit rule **true** applies the default rule to the asset. The default rule is in **eas\_field** for the matched field name.
5. Any other rule must be a list of versions which versions of that file are exported.
6. A rule in assets always exports actual file version data, not just the **url** as it is possible with **eas\_field**.

### eas\_field

The **eas\_field** exports actual file data if **files** is set to *true*. The version is determined by the **versions** array.

If **eas\_field** specifies **data** to be exported, the **data** array contains a list of versions for which no actual file version data is exported, but only the **url** to the files as well as other information.

### element name

The element name for the exported file is the column name. It can be overwritten in **fields**.

### Example output

```xml
<file type="files" column-api-id="204">
    <files>
        <file>
            <eas-id>10</eas-id>
            <compiled>&lt;file 10&gt;</compiled>
            <class>image</class>
            <extension>jpg</extension>
            <class_extension>image.jpg</class_extension>
            <preferred>true</preferred>
            <technical_metadata>
                <width>1920</width>
                <height>1280</height>
                <aspect_ratio>1.5</aspect_ratio>
                <max_dimension>1920</max_dimension>
                <file_type_extension>JPG</file_type_extension>
                <mime_type>image/jpeg</mime_type>
                <format>landscape</format>
            </technical_metadata>
            <versions>
                <version name="original">
                    <path>files/sid-10-file-10-berlin.jpg</path>
                </version>
                <version name="big">
                    <url>http://localhost/apitest/api/v1/eas/download/11/big</url>
                </version>
                <version name="small">
                    <url>http://localhost/apitest/api/v1/eas/download/28/small</url>
                </version>
            </versions>
        </file>
    </files>
</file>
```


---

# 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://docs.fylr.io/for-developers/export.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.
