Add an actor to a session
POST
/v1/session/{nameOrId}/join
const url = 'http://localhost:8090/v1/session/example/join';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"actor":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8090/v1/session/example/join \ --header 'Content-Type: application/json' \ --data '{ "actor": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”nameOrId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
actor
required
string
Example generated
{ "actor": "example"}Responses
Section titled “Responses”The session, with the actor added
Media typeapplication/json
object
sessionId
required
string
name
required
string
purpose
required
string
actor
required
string
actors
required
Array<string>
ttlHours
required
integer
createdAt
required
string
lastLoadedAt
string
Example generated
{ "sessionId": "example", "name": "example", "purpose": "example", "actor": "example", "actors": [ "example" ], "ttlHours": 1, "createdAt": "example", "lastLoadedAt": "example"}