Skip to main content
PUT
/
api
/
prompt-repo
/
sessions
/
{id}
/
rename
Rename prompt session
curl --request PUT \
  --url http://localhost:8080/api/prompt-repo/sessions/{id}/rename \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "session": {
    "id": 123,
    "prompt_id": "<string>",
    "version_id": 123,
    "name": "<string>",
    "model_params": {},
    "provider": "<string>",
    "model": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "messages": [
      {
        "id": 123,
        "order_index": 123,
        "message": {}
      }
    ]
  }
}

Path Parameters

id
integer
required

Session ID

Body

application/json
name
string
required

Response

Session renamed

session
object

Prompt playground session