updateCustomInstructions method

Future updateCustomInstructions({
  1. required String mentor,
  2. required String org,
  3. required Map body,
})

Implementation

Future<dynamic> updateCustomInstructions(
    {required String mentor, required String org, required Map body}) async {
  final response = await http.put(
    Uri.parse(
        '$dataBaseUrl/api/ai/mentor/orgs/$org/mentors/$mentor/settings/'),
    headers: _headers(),
    body: json.encode(body),
  );
  if (response.statusCode == 200) {
    return json.decode(response.body);
  } else {
    throw Exception('Failed to update mentor settings');
  }
}