---
title: "Upload files to pod"
method: POST
path: "/kapis/terminal.kubesphere.io/v1alpha2/namespaces/{namespace}/pods/{pod}/file"
tags: ["Web Terminal"]
---

# Upload files to pod

`POST /kapis/terminal.kubesphere.io/v1alpha2/namespaces/{namespace}/pods/{pod}/file`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`

## Path parameters

- `namespace` string, required
- `pod` string, required

## Query parameters

- `container` string
- `path` string

## Response `200`

ok

## Changes

- **2026-07-17** `0451c8cec9b1`: 1 info
  - endpoint added
- **2019-09-02** `6d6e730a2d14`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/kubesphere/apis/ks-api/changes/kapis/terminal.kubesphere.io/v1alpha2/namespaces/:namespace/pods/:pod/file/post.md)

---

[API](https://skmtc.dev/kubesphere/apis/ks-api.md) - [All operations](https://skmtc.dev/kubesphere/apis/ks-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kubesphere/apis/ks-api/revisions/0451c8cec9b1?raw)
