Apologies, I thought this was relevant as the examples are using DQL queries and the mutate endpoint.
mutate