---
title: "Exports log runs or log files as a ZIP archive containing CSV files and optionally the file attachments."
method: POST
path: "/api/v{version}/log/export"
tags: ["Log"]
---

# Exports log runs or log files as a ZIP archive containing CSV files and optionally the file attachments.

`POST /api/v{version}/log/export`

## Path parameters

- `version` string, required

## Request body

- LogExportRequest — Represents a request to export log files, allowing the client to specify which log runs or log files to include, whether to include attachments, and the locale for any localized content in the export.
  - `logRunIds` integer[] — The list of log run IDs to include in the export. Cannot be provided together with LogFileIds.
  - `logFileIds` integer[] — The list of log file IDs to include in the export. Cannot be provided together with LogRunIds.
  - `withAttachments` boolean, nullable — Whether to include attachments in the exported log files. If true, any attachments associated with the specified log files will be included in the export. If false, attachments will be excluded. Default is false.
  - `locale` string — The locale to use for any localized content in the exported log files. This can affect the language of any messages, labels, or other localized content included in the export. Default is "en" (English).

## Response `200`

OK

---

[API](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2.md) · [All operations](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geoadmin/boreholes-rest-api-v2/revisions/e6d0b4ee0f52/schema)
