---
title: "Upload a Kubernetes config file"
method: POST
path: "/api/v1/kubeconfig/{name}"
tags: ["KubeConfig"]
---

# Upload a Kubernetes config file

`POST /api/v1/kubeconfig/{name}`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/kubeconfig/{name}`
- Auth: none declared

Uploads a YAML kubeconfig file to storage

## Path parameters

- `name` string, required

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: YAML config file

## Response `200`

OK

- object

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
