Channel Session Data Update User Guide
Technical Overview
For the development of channel session update data API, we need to develop an API for getting the channel session in Redis (Active channel Session in Redis cache). Now, we get the active channel session from Redis by channelSessionId.
The Expertflow CX channel session API will update the channel session data additional attribute list. The communication flow is given as follows:
- The
path variable
and request Body
are mandatory for calling the API. - Upon receiving the request, the API:
- Validates the request i.e. if the user has passed the valid path variable and request body
.
- If validation failed then return with an error or channel session not found message as a response.
- Get the channel session by path variable and get an additional attribute list from the channel session.
- Validate the list size according to the request body (max size is 10)
- If the key already exists then override it other wise add a new entry in the list.
- After the update publish an event CHANNEL_SESSION_DATA_UPDATED further details is here.
- At the end send channel session as response of API.
- Validates the request i.e. if the user has passed the valid path variable and request body
Conversations API
The structure and properties of API is documented here in Channel Session Update Data API page.