analyzeCompanyHandleAssetsAssetSlugGet method

Future<CompaniesCompanyIdAssetsAssetIdGet200Response?> analyzeCompanyHandleAssetsAssetSlugGet(
  1. String companyHandle,
  2. String assetSlug
)

Process (analyze) an asset. Attempt to process an analytic on a backend warehouse/AI model.

Parameters:

  • String companyHandle (required):

  • String assetSlug (required):

Implementation

Future<CompaniesCompanyIdAssetsAssetIdGet200Response?> analyzeCompanyHandleAssetsAssetSlugGet(String companyHandle, String assetSlug,) async {
  final response = await analyzeCompanyHandleAssetsAssetSlugGetWithHttpInfo(companyHandle, assetSlug,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
    return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CompaniesCompanyIdAssetsAssetIdGet200Response',) as CompaniesCompanyIdAssetsAssetIdGet200Response;

  }
  return null;
}