NylorunDocsBeta
Runtime APISessions

Clear a session's model

DELETE
/v1/sessions/{sessionId}/model

Clears the session's own model (feature session-model): its next turns use the Tenant's model. Refused while a turn runs or waits (409 session_busy).

Authorization

applicationKey
headerAuthorizationBearer <token>

An application key of the Tenant (PUT /v1/tenant/keys/{keyId}), or Studio's key, derived from the admin key. With Nylorun-Subject and Nylorun-Scopes, it acts for that person, narrowed to those scopes. Never accepted from a browser (Origin).

Path Parameters

sessionId*string

Header Parameters

Nylorun-Protocol*string

The protocol version, 18

Nylorun-Subject?string

The person an application key acts for

Nylorun-Scopes?string

The subject's space-separated scopes; required with a subject

Response Body

The session's model

application/json
  1. response
configured*false
Value infalse
choice?
curl -X DELETE "https://example.com/v1/sessions/string/model" \  -H "Nylorun-Protocol: string"
{  "configured": false,  "choice": {    "provider": "string",    "model": "string"  }}