---
title: "Upload an object"
method: PUT
path: "/worker/object/{key}"
tags: ["worker"]
---

# Upload an object

`PUT /worker/object/{key}`

Uploads an object to the Sia network.

## Path parameters

- `key` string, required

## Query parameters

- `bucket` string, required — The name of the bucket.
- `minshards` integer — The number of data shards a piece of an object gets erasure-coded into
- `totalshards` integer — The number of total data shards a piece of an object gets erasure-coded into
- `mimetype` string — The MIME type of the object

## Response `200`

Successfully uploaded object

## Other responses

- `400` — Invalid combination of request parameters
- `404` — Bucket not found
- `503` — Consensus isn't synced

---

[API](https://skmtc.net/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.net/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/revisions/184a3d5207da/schema)
