Setting session location via REST API

Is there a way to set the session location using the REST API?

Yes, though it is provided by the appui module. (I would support moving it to the REST module if there are no blockers).

You can see how React Components uses it here:

Thanks Mark!