API reference · Playground
Edit a saved prompt
PATCH/api/prompts/{id}Signed in session
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | integer | The prompt id. |
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| name | string | |
| content | string |
Example
{
"name": "string",
"content": "Say hello in five words."
}Answer 200
Updated.
| Field | Type | What it is |
|---|---|---|
| prompt | SavedPrompt | |
| prompt. | integer | |
| prompt. | string | |
| prompt. | string | |
| prompt. | integer | |
| prompt. | integer |
Errors
- 400OpenAI shaped error.
- 404OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.