---
title: "Update a redis"
method: PUT
path: "/api/projects/{projectName}/redises/{redisName}"
tags: ["redis"]
---

# Update a redis

`PUT /api/projects/{projectName}/redises/{redisName}`

## Request

- Base URL: `https://api.hostim.dev`
- URL: `https://api.hostim.dev/api/projects/{projectName}/redises/{redisName}`
- Auth: HTTP bearer

Update a redis

## Path parameters

- `projectName` string, required
- `redisName` string, required

## Request body

- Redis
  - `name` string, required: The Redis name
  - `plan` string, required: The plan of the Redis instance
  - `cost` number: The cost of the Redis instance per month
  - `storage` number: The storage of the Redis instance

## Response `200`

Redis updated successfully

- GenericMessage
  - `error` string, required
  - `message` string, required

## Other responses

- `400`: Bad request
- `401`: User is not authorized
- `404`: Redis not found
- `500`: Internal server error

---

[API](https://skmtc.dev/hostim/apis/hostim-api.md) · [All operations](https://skmtc.dev/hostim/apis/hostim-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostim/apis/hostim-api/revisions/37c35e1026a9?raw)
