Updation and deletion of fields from ingest attachment arrays

Hi,

I have documents with multiple attachments in each of them. I am using ingest attachment processor to extract data and store it in elastic search document.

These attachments are stored in ingest attachment arrays. Is there an API through which I can update and delete the elements of this array only?

Do I have to upload all the elements in the array even if I just want to change one element in the attachment array?

If you could index binary documents one by one, that'd be better.

To answer your question, the update API does not support ingest pipeline as far as I remember.
So you have to send again the whole array.

If you do the text extraction outside elasticsearch, without the ingest pipeline, then you can probably use the update API.