Own session context modification
Was this helpful?
Was this helpful?
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.
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
Name of the created attribute.
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