Segment Recordings by Duration using REST API

I’m trying to set a maximum segment duration for recordings using the REST API.

Anybody know how I would go about doing this?