Hi there, i am developing a serverless custom app for freshchat, and i wanted to know if there is an API to add values on the custom user properties field.
That is the field.
Is there a way to use this field?
Thanks!
Hi there, i am developing a serverless custom app for freshchat, and i wanted to know if there is an API to add values on the custom user properties field.
That is the field.
Is there a way to use this field?
Thanks!
Yes, you can use the User endpoint.
On post or put, you can pass an array of properties, take a look.
curl -X POST \ https://api.freshchat.com/v2/users \ -H âAuthorization: Bearer eyJhbGciOxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxImNsaâ \ -H âContent-Type: application/jsonâ \ -d â{ âemailâ: âabc@example.comâ, âavatarâ: { âurlâ: âhttps://web.freshchat.com/img/johndoe.pngâ }, âphoneâ: â123456789â, âpropertiesâ: [ { ânameâ: âorderIdâ, âvalueâ: â#1242â } ], âfirst_nameâ: âABCâ, âlast_nameâ: âXYZâ }â
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.