Push/pop element to array (PATCH request)

How can I add or delete elements from an array without having to query the document to update them programmatically (modifying the queried document to update the array with a back-end language)?

The documentation does not show how to update arrays inside the box.
[Documents API | Elastic App Search Documentation [7.11] | Elastic](https://Update Documents)

Hey Lautaro! You're correct that we don't have any APIs specifically for pushing onto existing arrays. You do need to first GET the document/field that you want to update & modify it manually or on your own server before updating/PATCHing the document.

Apologies I couldn't be more helpful - I can definitely bring this feedback to the team if there's more demand for tools and helpers for working with more complex types!

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