# Using third party API to modify/encrypt value of existing fields of document

**URL:** https://discuss.elastic.co/t/using-third-party-api-to-modify-encrypt-value-of-existing-fields-of-document/155478
**Category:** Elasticsearch
**Created:** [November 6, 2018, 5:30am UTC](https://discuss.elastic.co/t/using-third-party-api-to-modify-encrypt-value-of-existing-fields-of-document/155478 "2018-11-06T05:30:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kauzhik](https://avatars.discourse-cdn.com/v4/letter/k/bbce88/32.png) [@kauzhik](https://discuss.elastic.co/u/kauzhik)
#### Post date: [November 6, 2018, 5:30am UTC](https://discuss.elastic.co/t/using-third-party-api-to-modify-encrypt-value-of-existing-fields-of-document/155478/1 "2018-11-06T05:30:13Z")

</div>

I have to encrypt/tokenize an existing field (Integer type) of documents using a specific API that encrypts/decrypts a given value. I have a million document in my index and need to encrypt the value of that particular field.  
So, is there a way I can pass that API in the POST body to perform the operation?  
OR should I create a Java tool that can talk with both Elasticsearch and the API?

---

<div class="post-metadata">

### Author: ![ShaneP](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@ShaneP](https://discuss.elastic.co/u/ShaneP)
#### Post date: [November 6, 2018, 7:17am UTC](https://discuss.elastic.co/t/using-third-party-api-to-modify-encrypt-value-of-existing-fields-of-document/155478/2 "2018-11-06T07:17:51Z")

</div>

Have the [kissanime](https://kissanime.software/) same question. Need help with this. Anyone [letgo](https://letgo.onl/) has solution?

Regards,  
Shane.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [November 6, 2018, 7:25am UTC](https://discuss.elastic.co/t/using-third-party-api-to-modify-encrypt-value-of-existing-fields-of-document/155478/3 "2018-11-06T07:25:46Z")

</div>

I believe you will need to write an external tool.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 4, 2018, 7:25am UTC](https://discuss.elastic.co/t/using-third-party-api-to-modify-encrypt-value-of-existing-fields-of-document/155478/4 "2018-12-04T07:25:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
