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

# Export a file to object storage

`POST /files/export`

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

---

[API](https://skmtc.dev/tencentblueking/apis/untitled-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/untitled-api/revisions/a12b0f392336/schema)
