Skip to main content
PATCH
Update a prompt (PATCH)

Authorizations

Authorization
string
header
required

Send your workspace API key as Authorization: Bearer zr_live_….

Path Parameters

id
integer
required

The numeric id of the item.

Body

application/json

Send only the fields you want to change.

text
string
Required string length: 1 - 5000
status
enum<string>

Where a prompt is in its life: draft, active, paused, suggested (AI-proposed), or rejected.

Available options:
draft,
active,
paused,
suggested,
rejected
location
string
Maximum string length: 255
tags
(string | integer)[]

Tag names or tag ids. Replaces the prompt's current tags.

Maximum string length: 100
topicId
integer | null

Move to this topic, or null to remove the topic.

topicName
string

Topic name to move to (created if needed).

Maximum string length: 100

Response

A prompt.

success
boolean
Example:

true

data
object
message
string
Example:

"Prompt retrieved successfully"