Patch API

Discover all the methods and properties available in the Patch API.

Patches allow you to modify a particular entity, such as user profiles or session attributes, without knowing its current state.

Croct's mascot winking
Looking for something specific?

Use the search bar at the top of the page or press / to quickly search through the documentation.

Use the summary below to quickly jump to a specific topic:

PageDescription
setLearn how to set a value at a given path.
addLearn how to add a value to a collection.
combineLearn how to combine two sets of values.
removeLearn how to remove values from a collection.
mergeLearn how to merge two maps or lists.
incrementLearn how to increment a value by a given amount.
decrementLearn how to decrement a value by a given amount.
clearLearn how to clear the value at the given path.
unsetLearn how to delete the key and value at a given path.
saveLearn how to apply the changes to the entity.