updating process endpoints to take segment_id