---
title: "Create Image from Upload (JSON + Base64 File)"
method: POST
path: "/images/{filename}"
tags: ["Images"]
---

# Create Image from Upload (JSON + Base64 File)

`POST /images/{filename}`

Create an image file

## Path parameters

- `filename` string, required

## Request body

- object
  - `reseller` string — The reseller or territory the image file applies to.
  - `domain` string — The domain the image file applies to.
  - `server` string — The server the image file applies to.
  - `description` string — A description of the image file to indicate what it is used for
  - `filetype` string, required — Encoding (content type) of the image file
  - `base64_file` string, required — A base64 encoded string formatted without line breaks or spaces.

## Response `202`

- object
  - `code` integer, required
  - `message` string, required

## Other responses

- `400`
- `401`
- `x-202-2`
- `x-400-2`

---

[API](https://skmtc.net/ns-api/apis/netsapiens-api-v2.md) · [All operations](https://skmtc.net/ns-api/apis/netsapiens-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ns-api/netsapiens-api-v2/revisions/d37f65b5b886/schema)
