> For the complete documentation index, see [llms.txt](https://developer.gyfti.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.gyfti.fr/using-gyfti-store/add-or-update-a-user-in-your-store.md).

# Add or update a user in your store

How to automate the creation or update of a new or existing user in your store

Your first step to gamify your experience is to add a new user to your store.&#x20;

Make sure you have a Store subscription on your account.

You only need :&#x20;

* your user's First Name
* you user's Last Name
* you user's email address

You can give a first pool to your user when the account is created but this is optional.&#x20;

This action works just as well for adding an account for a user in your gyfti store, as for modifying an existing account.

## How to add or update a user in your store from Hubspot with Zapier

#### Hubspot Trigger method : new contact in a list

{% embed url="<https://www.loom.com/share/ba1296fd425d4ff28054b05317a56f88?sid=bf00e9e4-217e-4790-ae1e-65cde0e51e6d>" %}

## Add or update a user in your store

<mark style="color:green;">`POST`</mark> `https://app.gyfti.fr/api/1.1/wf/add-user-store`

Use this call if you want to create or update a user account in your store in your workflow

#### Headers

| Name                                            | Type   | Description             |
| ----------------------------------------------- | ------ | ----------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | 'Bearer \[YOUR\_TOKEN]' |

#### Request Body

| Name                                              | Type   | Description                                            |
| ------------------------------------------------- | ------ | ------------------------------------------------------ |
| user\_firstname<mark style="color:red;">\*</mark> | String | your user's first name                                 |
| user\_lastname<mark style="color:red;">\*</mark>  | String | your user's last name                                  |
| user\_email<mark style="color:red;">\*</mark>     | String | your user's email                                      |
| user\_pool                                        | String | the pool amount of your user when creating the account |

{% tabs %}
{% tab title="200: OK success" %}

```
{
  "status": "success",
  "response": {}
}
```

{% endtab %}

{% tab title="401: Unauthorized unauthorized" %}

```json
{
    "error_class": "Unauthorized",
    "args": {
        "code": "1612453252352x764738473647384927"
    },
    "message": null,
    "translation": "Invalid or expired token: 1612453252352x764738473647384927"
}
```

{% endtab %}

{% tab title="404: Not Found not found" %}

```json
{
    "statusCode": 404,
    "body": {
        "status": "NOT_FOUND",
        "message": "Workflow not found add-pool"
    }
}
```

{% endtab %}
{% endtabs %}
