How can I change some attributes for a user manually?Updated 11/02/2020


There may be different reasons why you may want to touch manually user attributes. It can be a simple data fix on small set of users needed because of error in external service or a data adjustments caused by business logic change. Also it can be a good way to trigger some testing updates to verify the setup, especially within your staging organization.

Let's say that we have an existing user with email: michal@hull.io, and we want to manually touch some of its attributes. We want to overwrite its existing score and add a stage which was not set previously.

Altering small number users like that can be easily done by REPL connector. Go ahead and install the connector from connectors gallery within your organization.

install hull repl connector

After the connector is installed hit "Code Editor" button at the bottom of the sidebar.

code editor hull repl connector

This will open a code editor where you can write and execute API calls to Hull platform.

empty code editor hull repl connector

To perform the changes mentioned above write the following code:

hull.asUser({ email: "michal@hull.io" })
    .traits({
        score: 100,
        stage: "prospect"
    });

As soon as you finish writing / paste the code you can see the preview of your changes on the right side of the screen, but still no action was performed. The preview allows you to double check if the changes which will be performed are aligned with your intentions.

attributes change preview

Once you are sure that the call is correct hit "Run" button at the top of the screen. This will call the platform right away and in the bottom right section you should see "Call successful" confirming that the platform accepted the change.

attributes change call

After the change is processed by the platform you will see result on the user timeline.