---
updatedAt: 2026-09-04T07:07:54.000Z
agentTools:
  projectIndex: https://documentation.indigitall.com/llms.txt
---

# Customer Creation and Update

To add or update customer fields on JSON object, please do the following:

```javascript
indigitall.assignOrUpdateValueToCustomerFields({
      "field1": "value",
      "field2": "value",    
    },(success) => {
      // do something
    }, (error) => {
      // do something else
    })
```

For example:

```javascript
indigitall.assignOrUpdateValueToCustomerFields({
    "email": "test@mydomain.com",
    "phone": "123456",
    "name": "Peter",
    "last_name": "Brice"
    },(success) => {
      // do something
    }, (error) => {
      // do something else
    });
```

<br />

Otherwise, if you want to eliminate a field, you have to do this with an arrayList of the fieldNames:

```javascript
indigitall.deleteValuesFromCustomerFields([
      "field1",
      "field2"
    ],(success) => {
      // do something
    }, (error) => {
      // do something else
    })
```