Skip to content

GraphQL: Updating Identities

Mridang Agarwalla edited this page Apr 16, 2019 · 5 revisions

Mutations can be used to update the email identities in Nosto.

Upserting Identities

The upsertIdentity mutation allows you to upsert the details of an identity.

The given example updates the customer attributes for the email and requests the details of all the attributes of the identity.

If the identity for does not exist, a new identity will be created.

Note: If a specified attribute already exists on that identity, it will be overwritten.

curl -0 -v -X POST \
-u ":<token>" \
-H 'Content-Type: application/graphql' \
-d @- << EOF
mutation {
  upsertIdentity(identity: {
    email: "",
    attributes: [
      {name: "loyalty-tier", value: "Gold"},
      {name: "shoe-size", value: "42"},
  }) {
    attributes {

Deleting Identities

There is currently no way to delete an identity.

Clone this wiki locally
You can’t perform that action at this time.