---
title: "Upload a file."
method: POST
path: "/api/v2/cddrive/files/content"
tags: ["CD Drive"]
---

# Upload a file.

`POST /api/v2/cddrive/files/content`

Upload a file to the customer's private CD Drive.

## Headers

- `Content-MD5` string, md5

## Response `201`

The file was created successfully. The response contains the file metadata.

- CDDriveFile — A file in the CD Drive that contains content.
  - `name` string, required — The name of the file including the extension.
  - `parentId` integer, required — The ID of the parent folder or 0 for the root folder.
  - `id` integer, required — The ID of the file.
  - `createdDate` string, date-time, required — The date and time the file was created in ISO 8601 format.
  - `lastModifiedDate` string, date-time, required — The date and time the file was last modified in ISO 8601 format.
  - `size` integer — The size of the file in bytes.

## Other responses

- `400` — The provided Content-MD5 header doesn't match the provided content, or a provided field is invalid.
- `403` — Authorization failed, Username or password not found or incorrect.
- `404` — A parent id cannot be found.
- `409` — A name conflict because the file already exists.
- `413` — File is bigger than maximum size of 500 MB.

---

[API](https://skmtc.net/prss/apis/contentdepot.md) · [All operations](https://skmtc.net/prss/apis/contentdepot/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prss/contentdepot/versions/838e7ae589d8/schema)
