---
title: "Upload file from sandbox to disk"
method: POST
path: "/disk/{disk_id}/artifact/upload_from_sandbox"
tags: ["artifact"]
---

# Upload file from sandbox to disk

`POST /disk/{disk_id}/artifact/upload_from_sandbox`

Upload a file from a sandbox environment to disk storage as an artifact

## Path parameters

- `disk_id` string, uuid, required

## Request body

- HandlerUploadFromSandboxReq
  - `file_path` string, required — Destination directory path on the disk
  - `sandbox_filename` string, required — Filename in the sandbox
  - `sandbox_id` string, required — Source sandbox ID
  - `sandbox_path` string, required — Source directory in the sandbox

## Response `201`

Created

- object
  - `code` integer
  - `error` string
  - `msg` string
  - `data` ModelArtifact
    - `created_at` string
    - `disk_id` string
    - `filename` string
    - `meta` object
    - `path` string
    - `updated_at` string

## Changes

- **2026-02-03** `6ab8968e80c3` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the success response with the status `201`
- **2026-01-17** `557175c1ac01` — 1 info
  - endpoint added
- **2025-11-12** `a1c1bcb0e2ee` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/memodb-io/apis/acontext-api/changes/disk/:disk_id/artifact/upload_from_sandbox/post.md)

---

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