Own session context modification
Removes a specified attribute from a session context associated with the sessionId
derived from the Authorization token used in the call. Recommended for performing calls from the storefront.
Note: Optimistic locking is not taken into account here.
Your Emporix tenant's name.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$
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.
A session context with the provided ID was not found.
A server-side error occurred.
DELETE /session-context/{tenant}/me/context/attributes/{attributeName} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Adds an attribute to a session context associated with the session-id derived from the Authorization token used in the call. Recommended for performing calls from the storefront.
Note: Optimistic locking is not taken into account here.
Your Emporix tenant's name.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$
Context attribute
Additional context information key
Additional context information value
The request was successful. The attribute was added to the session context.
Name of the created attribute.
A session context with the provided ID was not found.
A server-side error occurred.
POST /session-context/{tenant}/me/context/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"
}
attr1
Was this helpful?