Unable to pass custom fields using Chat REST Api
Summary
Receiving Empty values when passing Custom Fields using Chat REST APIContent
I am having trouble passing the custom field values using the establishSession api call. Here is the sessionInformation that I am passing.
{
"sessionInformation": "{\"emailAddress\":\"[email protected]\", \"firstName\":\"John\", \"lastName\":\"Doe\", \"question\":\"Test Chat\", \"customFields\":[{\"name\":\"movie_title\",\"type\":\"string\",\"value\":\"Avengers\"}], \"auxiliaryData\": {\"BROWSER\":\"Firefox\", \"OPERATING_SYSTEM\":\"iPhone OS\", \"USER_AGENT\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1\"}}"
}
Per the documentation, I see that I need to pass name and value for text customfields and name and id's for custom field menus. Please let me know if I am doing anything wrong.