Create or update a variable

Creates a new variable or updates an existing one at the specified path.