Make a cache on a server; its password is in this answer only
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/tenants/{tid}/cachesMake a cache on a server; its password is in this answer only
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
object
server_idstring requirednamestring requiredmemory_mbinteger optional
Example
{
"server_id": "string",
"name": "string",
"memory_mb": 0
}Responses
201 Cache, with its password
Content type: application/json
idstring requiredserver_idstring requirednamestring requiredportinteger requiredmemory_mbinteger requiredjob_idstring requiredcreated_atstring (date-time) requiredstatusstring requiredAllowed values:"provisioning""active""failed""deleting""delete_failed"hoststring requiredpasswordstring required
Example
{
"id": "string",
"server_id": "string",
"name": "string",
"port": 0,
"memory_mb": 0,
"job_id": "string",
"created_at": "2026-01-01T00:00:00Z",
"status": "provisioning",
"host": "string",
"password": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required