curl --request PATCH \
--url 'https://api.nsr.stateset.com/api/v1/sessions/{session_id}/context' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"focus_entities": [
"string"
],
"remove": [
"string"
],
"set": {}
}'
{
"context": {},
"focus_entities": [
"string"
],
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Update session context
Update stored session context. Required scope: write
PATCH
/
api
/
v1
/
sessions
/
{session_id}
/
context
curl --request PATCH \
--url 'https://api.nsr.stateset.com/api/v1/sessions/{session_id}/context' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"focus_entities": [
"string"
],
"remove": [
"string"
],
"set": {}
}'
{
"context": {},
"focus_entities": [
"string"
],
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Update stored session context.
Required scope:
write
Path parameters
string
required
Session ID
Request body
UpdateSessionContextRequest
string[]
Focus entities to set
string[]
Context variable keys to remove
object
Context variables to add or update
Response
UpdateSessionContextResponse
object
required
Updated context variables
string[]
required
Updated focus entities
string
required
Session ID
Status codes
| Code | Meaning |
|---|---|
200 | Context updated |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
404 | Session not found |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
curl --request PATCH \
--url 'https://api.nsr.stateset.com/api/v1/sessions/{session_id}/context' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"focus_entities": [
"string"
],
"remove": [
"string"
],
"set": {}
}'
{
"context": {},
"focus_entities": [
"string"
],
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Last modified on August 31, 2026