REPLACE replaces a segment of a string with another string.
Function category: Text
REPLACE(arg1, arg2, arg3, arg4)
String to be segmented.
Position in the string at which to begin slicing.
Number of characters to slice from the string.
String to replace the substring delineated by
Let's say we're given a response with an id:
If we replace the first four digits of the id with our own string, we can do so using
REPLACE(data.ids.id_1, 1, 4, "custom-id-")
This returns the following: