---
title: "Create or update object store"
method: PUT
path: "/storage/obj/{bucket}"
tags: ["Object Store"]
---

# Create or update object store

`PUT /storage/obj/{bucket}`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/storage/obj/{bucket}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/docs/storage/obj/:bucket/put.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new object store bucket if one does not exist or updates it otherwise

## Path parameters

- `bucket` string, required

## Request body

- UpdateObjectBucketRequest
  - `description` string: Updated description of the bucket
  - `max_bytes` integer: Updated maximum size of the bucket in bytes

## Response `200`

Bad Request

- SuccessMessage
  - `message` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2025-07-04** `d566a61279be`: 2 breaking, 8 warning, 5 info
  - added the new path request parameter `bucket`
  - removed the success response with the status `201`
  - the `max_bytes` request property's min was set to `1.00`
  - removed the request property `bucket`
  - …11 more
- **2025-06-13** `e4ad9e1ccd66`: 2 warning, 1 info
  - removed the optional property `bucket` from the response with the `201` status
  - removed the optional property `status` from the response with the `201` status
  - added the optional property `message` to the response with the `201` status

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/changes/storage/obj/:bucket/put.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/revisions/104591eadd10?raw)
