Techdocs
Search…
Updating Identities
Mutations can be used to update the email identities in Nosto. An "identity" is the personal information associated with an email address.

Upserting Identities

The upsertIdentity mutation allows you to upsert the details of an identity. The given example updates the customer attributes for the email [email protected] and requests the details of all the attributes of the identity.
If the identity for [email protected] does not exist, a new identity will be created.
Note: If a specified attribute already exists on that identity, it will be overwritten.
1
curl -0 -v -X POST https://api.nosto.com/v1/graphql \
2
-u ":<token>" \
3
-H 'Content-Type: application/graphql' \
4
-d @- << EOF
5
mutation {
6
upsertIdentity(identity: {
7
8
attributes: [
9
{name: "loyalty-tier", value: "Gold"},
10
{name: "shoe-size", value: "42"},
11
]
12
}) {
13
email,
14
attributes {
15
name,
16
value
17
}
18
}
19
}
20
EOF
Copied!

What can identity attributes be used for?

The attributes associated with an identity can be used to segment users. This works similarly to how the attributes can be leveraged when importing them via a CSV.

Deleting Identities

There is currently no way to delete an identity.
Last modified 1yr ago