---
title: "Store object"
method: PUT
path: "/bus/object/{key}"
tags: ["bus"]
---

# Store object

`PUT /bus/object/{key}`

Stores or updates an object.

## Path parameters

- `key` string, required

## Request body

- object
  - `bucket` string — The name of the bucket.
  - `eTag` string — The ETag of the object
  - `mimeType` string — The MIME type of the object
  - `metadata` ObjectUserMetadata — User-defined metadata about an object provided through X-Sia-Meta- headers
  - `object` Object
    - `metadata` ObjectUserMetadata — User-defined metadata about an object provided through X-Sia-Meta- headers
    - `bucket` string — The name of the bucket.
    - `etag` string — The ETag of the object
    - `health` number, float — The health of the object
    - `modTime` string, date-time — When the object was last modified
    - `key` string — The key of the object
    - `size` integer — The size of the object in bytes
    - `mimeType` string — The MIME type of the object
    - `encryptionKey` string — A key used to encrypt and decrypt data. The key is either a regular key (key) or a salted key (skey). The latter requires a seed to be used for encryption and decryption.
    - `slabs` SlabSlice[]
      - `slab` Slab — A slab of data to migrate
        - `health` number, float
        - `encryptionKey` string — The encryption key used to encrypt the slab's shards
        - `minShards` integer — The number of data shards the slab is split into
      - `offset` integer
      - `limit` integer

## Response `200`

Successfully stored object

## Other responses

- `400` — Malformed request
- `500` — Internal server error

---

[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/versions/184a3d5207da/schema)
