Skip to main content
Parlant 2.2 just released,

introducing the elegant new Python SDK for code-driven agent configuration!

Dismiss

Update Session

PATCH 

/sessions/:session_id

Updates an existing session's attributes.

Only provided attributes will be updated; others remain unchanged.

Request

Responses

Session successfully updated
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Patch, "https://www.parlant.io/sessions/:session_id");
request.Headers.Add("Accept", "application/json");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Parameters
— pathrequired
Body required
{
  "consumption_offsets": {
    "client": 42
  },
  "title": "Updated session title"
}