createSegmentPage method
Creates a new segment page with the given data
Implementation
Future<SegmentPage> createSegmentPage(String name) async {
final response = await _post('/api/segment-page', data: {
'name': name,
});
return SegmentPage.fromJson(response.data);
}