Session context modification
Was this helpful?
Was this helpful?
Removes a particular attribute from a specified session context. Recommended for performing calls on the management side.
Note: Optimistic locking is not taken into account here.
Required scopes
session_context.context_manage
Your Emporix tenant's name.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$
Customer's session ID.
Name of the attribute that should be deleted from the session context.
DELETE /session-context/{tenant}/context/{sessionId}/attributes/{attributeName} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Adds an attribute to a session context file for a session with a given sessionId. Recommended for performing calls on the management side.
Note: Optimistic locking is not taken into account here.
Required scopes
session_context.context_manage
Your Emporix tenant's name.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$
Customer's session ID.
Context attribute
Additional context information key
Additional context information value
POST /session-context/{tenant}/context/{sessionId}/attributes HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"key": "additional attribute name",
"value": "61079711ce0eb90861357045"
}
No content