Clinia
API ReferenceREST API

Close session

DELETE
/v1/patients/{patientId}/sessions/{sessionId}

Closes an active session. Closed sessions remain readable but accept no further interactions.

Path Parameters

patientId*string

Registry key of the patient.

Match^[A-Za-z0-9._-]{1,128}$
sessionId*string

Unique session ID returned when the session was created.

Length1 <= length

Response Body

application/json

application/json

curl -X DELETE "https://example.com/v1/patients/patient-123/sessions/session-456"
{
  "ok": true,
  "sessionId": "string"
}
{
  "code": 1,
  "type": "ALREADY_EXISTS",
  "message": "string"
}