Is there a way to set or update custom user properties from a custom app in Freshchat?

I would like to set custom user properties for a Freshchat user from a custom app in Freshchat. I know email, first name, last name and phone can be updated via the API: Freshchat.

This thread indicates that custom properties can be set via the API as well, but that doesn’t match the documentation: Is there an API for the "Custom user properties"?.

I need to be able to set/clear custom properties. Is there a way to do this?

Hi Jesse_X,
Welcome to this community!

Yes, you can do it using the available APIs. The custom fields must be specified within the “properties” array.

Like in this curl:

curl --location --request PUT 'https://subdomain.freshchat.com/v2/users/e0caa469-fb0b-47e4-916a-80e1c0f51999' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ey...8dUI' \
--data '{
    "properties": [
        {
            "name": "cf_my_custom_field",
            "value": "My custom Value!"
        }
    ],
    "last_name": "Hello"
}'

immagine

So you need to include a request like this in your app.

Hope this helps!

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.