Updating hash key value

“endpoint_body[:reportRequests][0][:pageToken]” in this case how can i update the key value
pageToken

Unless I’m misunderstanding the question, surely

endpoint_body[:reportRequests][0][:pageToken] = new_value

?

1 Like

“endpoint_body[:reportRequests][0][:pageToken]”
i have hash in this formate only

Why do you want to have your variable expression as a string?