Session Context Modification
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.
- : Manage session context
Your Emporix tenant name.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$Customer session ID. The session context (and this ID) is created when a cart is created for the user; until then, only an anonymous or customer token is returned and there is no session context resource.
Name of the attribute that should be deleted from the session context.
The request was successful. The attribute has been deleted from the session context.
No content
A session context with the provided ID was not found.
A server-side error occurred.
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.
- : Manage session context
Your Emporix tenant name.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$Customer session ID. The session context (and this ID) is created when a cart is created for the user; until then, only an anonymous or customer token is returned and there is no session context resource.
Context attribute
Additional context information key
Additional context information value
The request was successful. The attribute was added to the session context.
No content
A session context with the provided ID was not found.
A server-side error occurred.
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: 25
{
"key": "text",
"value": {}
}No content
Last updated
Was this helpful?

