---
title: "Export a file to object storage"
method: POST
path: "/files/export"
tags: ["pv"]
---

# Export a file to object storage

`POST /files/export`

## Request

- The document declares no server URL.
- Auth: none declared

Read a file from the volume, compute its sha256, and upload it using a presigned URL

## Request body

- PkgServerVolumefsExportFileRequest
  - `base_path` string, required
  - `rel_path` string, required
  - `upload_url` string, required

## Response `200`

OK

- PkgServerVolumefsExportFileResponse
  - `mtime` string
  - `sha256` string
  - `size` integer

## Changes

- **2026-07-23** `a12b0f392336`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tencentblueking/apis/daemon-api/changes/files/export/post.md)

---

[API](https://skmtc.dev/tencentblueking/apis/daemon-api.md) - [All operations](https://skmtc.dev/tencentblueking/apis/daemon-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/daemon-api/revisions/b7207bf13d2c?raw)
