Pistis
API referenceChanging a session

Rename the session

POST
/sessions/{id}/title

Sets the session's name (meta.title, one line, at most 120 characters) and notes who did. A name a person gave stays: the agent's own naming doesn't replace it. The owner, a collaborator, or whoever may manage sessions may.

Authorization

bearer
headerAuthorizationBearer <token>

An API token

Path Parameters

id*string

A session id

Request Body

application/json
  1. body
title*string

Response Body

Renamed

application/json
  1. response
title*string
Example Request
curl -X POST 'http://127.0.0.1:7777/sessions/ses_6c1f2a0b9d3e4f5a6b7c/title' \  -H 'Content-Type: application/json' \  -d '{  "title": "Raise the login timeout"}'
Example Response
{  "title": "string"}