apiAiIndexOrgsOrgUsersUserIdDocumentsDocumentIdRetrieverDocumentsPut method

Future apiAiIndexOrgsOrgUsersUserIdDocumentsDocumentIdRetrieverDocumentsPut(
  1. String? documentId,
  2. String? org,
  3. String? userId,
  4. Map body,
)

Implementation

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