API request: Set rate for daterange

This script was kind of a bear to write. It would have been trivial had there been an API endpoint that would have allowed me to set the rate for a given daterange on a goal, basically a generalized, API-accessible version of the “Schedule a break” UI.

Any chance we could get that?