# Reset contact fields with Mautic API

**URL:** <https://forum.mautic.org/t/reset-contact-fields-with-mautic-api/11428>\
**Category:** Product Support\
**Created:** [October 18, 2019, 1:24pm UTC](https://forum.mautic.org/t/reset-contact-fields-with-mautic-api/11428 "2019-10-18T13:24:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolow](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lolow/32/738_2.png) [@lolow](https://forum.mautic.org/u/lolow)\
**Post date:** [October 18, 2019, 1:24pm UTC](https://forum.mautic.org/t/reset-contact-fields-with-mautic-api/11428/1 "2019-10-18T13:24:38Z")

</div>

Mautic version : 2.13.1  
PHP version : 5.6

Api works perfectly to modify my contact, by adding new values to my **multiple select field** tags :

```
        $response = $client->request('POST', 'contacts/new',[
            'auth' => ['mymail', 'mdp'],
            'form_params' => [
                'email' => $this->getUser()->getEmailCanonical(),
                'tags' => ['water','fire']
            ]
        ]); 

```

But when I send new ones with API, it just add to the list but do not delete previous tags.  
For example if I send [‘water’,‘wind’], I’ll get [‘water’,‘fire’,‘wind’].  
Steps I have tried to fix the problem:  
I have tried to give an empty array but it doesn’t work.

Thanks :-).

---

<div class="post-metadata">

**Author:** ![lolow](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lolow/32/738_2.png) [@lolow](https://forum.mautic.org/u/lolow)\
**Post date:** [October 21, 2019, 4:21pm UTC](https://forum.mautic.org/t/reset-contact-fields-with-mautic-api/11428/2 "2019-10-21T16:21:08Z")

</div>

I have tried to empty the user with a PATCH request that send nothing, it keep the user just with ip address and emtpy every data, but then I can’t refill the contact with data.

Anyone have an idea ?
