---
title: "Create a redis"
method: POST
path: "/api/projects/{projectName}/redises"
tags: ["redis"]
---

# Create a redis

`POST /api/projects/{projectName}/redises`

## Request

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

Create a redis

## Path parameters

- `projectName` 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 created successfully

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

## Other responses

- `400`: Bad request
- `401`: User is not authorized
- `404`: Project 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)
