The search-session
listens to changes in the user session via the search/session/transform
and writes it to the segment cookie.
When the session API is called:
_11curl --request POST \_11 --url https://{ws}--{account}.myvtex.com/api/sessions \_11 --header 'Content-Type: application/json' \_11 --header 'Cookie: vtex_session={mysession}' \_11 --data '{_11 "public": {_11 "facets": {_11 "value": "myfacet=myvalue;"_11 }_11 }_11}'
It will call the search/session/transform
with the following body:
_10{_10 "public": {_10 "facets": {_10 "value": "myfacet=myvalue;"_10 }_10 }_10}
Then, the search session will add the facets: myfacet=myvalue
to the segment cookie.