apiAiIndexOrgsOrgUsersUserIdRetrieverTrainPost method

Future apiAiIndexOrgsOrgUsersUserIdRetrieverTrainPost(
  1. String? org,
  2. String? userId,
  3. Map body
)

Implementation

Future<dynamic> apiAiIndexOrgsOrgUsersUserIdRetrieverTrainPost(
    String? org, String? userId, Map body) async {
  final response = await http.post(
    Uri.parse(
        '$dataBaseUrl/api/ai/index/orgs/$org/users/$userId/retriever_train/'),
    body: json.encode(body),
    headers: _headers(),
  );
  return json.decode(response.body);
}