Skip to main content
PUT
/
prompts
/
{prompt_id}
Update a prompt
curl --request PUT \
  --url https://sdk.senso.ai/api/v1/prompts/{prompt_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "text": "<string>"
}'
{
  "prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "text": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "deleted_at": "2023-11-07T05:31:56Z"
}

Authorizations

X-API-Key
string
header
required

API key authorization

Path Parameters

prompt_id
string<uuid>
required

The unique identifier (UUID) of the prompt

Body

application/json
name
string
required

The new name of the prompt (must be unique within organization)

Required string length: 2 - 255
text
string
required

The new prompt text with variables in {{variable}} format

Response

Prompt successfully updated

prompt_id
string<uuid>

The unique identifier of the prompt

name
string

The name of the prompt

text
string

The prompt text with variables

created_at
string<date-time>

When the prompt was created

updated_at
string<date-time>

When the prompt was last updated

deleted_at
string<date-time> | null

When the prompt was deleted (null if not deleted)

I