Skip to main content
PUT
Update a saved prompt

Authorizations

Authorization
string
header
required

Path Parameters

name
string
required

The name of the saved prompt.

Maximum string length: 128
Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$

Body

application/json
prompt
string
required

The new prompt, as a JSON string of a chat completions request body. It's validated the way a chat completions request is, and can be up to 50 KiB.

Response

The updated saved prompt.

name
string
required

The name of the prompt.

prompt
string
required

The prompt, as a JSON string of a chat completions request body.

created_at
string<date-time>
required

When the prompt was created.

updated_at
string<date-time>
required

When the prompt was last updated.