Skip to content
View Markdown

Run a Redis path command

PUT/v1/disks/{disk}/redis/{namespace}/{command}
PUT
/v1/disks/{disk}/redis/{namespace}/{command}
Code sample: cURL
curl --fail-with-body -X PUT 'https://api.wabe.sh/v1/disks/demo/redis/app/SET/greeting' \
-H 'Authorization: Bearer YOUR_PROJECT_API_KEY' \
-H 'Content-Type: application/octet-stream' \
--data-binary 'Hello'

A nonempty raw body is appended to the arguments, followed by query options.

disk
required
string
/^[A-Za-z0-9_-]{1,128}$/

Example

demo

Project disk name, or the disk ID in the actor runtime disk URL.

namespace
required
string
/^[A-Za-z0-9_-]{1,128}$/

Example

app

Namespace on this disk.

command
required
string

Example

SET/greeting

Slash-separated, URL-encoded command and arguments.

Upstash-Encoding
string
default: json
Allowed values: json base64

Encoding for byte-string replies.

Upstash-Response-Format
string
default: json
Allowed values: json resp2

Reply format. RESP2 requires the default encoding.

Command reply.

One result or error envelope. Pipeline/multi return an array of these.

object
result
error
string

Example

{
"result": "OK"
}

Invalid command, arguments, request shape or encoding.

Media typeapplication/json
One of:

One result or error envelope. Pipeline/multi return an array of these.

object
result
error
string

Missing, invalid or revoked project API key, or an invalid runtime access token.

Media typeapplication/json
object
error
required
string
message
required
string

Actor runtime token does not authorize this disk or instance generation.

Media typeapplication/json
object
error
required
string
message
required
string

Disk not found in this project.

Media typeapplication/json
object
error
required
string
message
required
string

Wabe Disk request or response limit exceeded.

Media typeapplication/json
One of:

One result or error envelope. Pipeline/multi return an array of these.

object
result
error
string

Storage failure.

Media typeapplication/json
One of:

One result or error envelope. Pipeline/multi return an array of these.

object
result
error
string

Disk unavailable.

Media typeapplication/json
object
error
required
string
message
required
string