updateAssetPriceHistoryWithHttpInfo method
Future<Response>
updateAssetPriceHistoryWithHttpInfo(
- String companyId,
- String assetId,
- String aphId,
- AssetPriceHistoryUpdate assetPriceHistoryUpdate,
Update an existing price history record by ID
Note: This method returns the HTTP Response.
Parameters:
-
String companyId (required): Unique identifier for the Company
-
String assetId (required): Unique identifier for the Asset
-
String aphId (required): Unique identifier for the Aph
-
AssetPriceHistoryUpdate assetPriceHistoryUpdate (required):
Implementation
Future<Response> updateAssetPriceHistoryWithHttpInfo(String companyId, String assetId, String aphId, AssetPriceHistoryUpdate assetPriceHistoryUpdate,) async {
// ignore: prefer_const_declarations
final path = r'/companies/{company_id}/assets/{asset_id}/prices/{aph_id}'
.replaceAll('{company_id}', companyId)
.replaceAll('{asset_id}', assetId)
.replaceAll('{aph_id}', aphId);
// ignore: prefer_final_locals
Object? postBody = assetPriceHistoryUpdate;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}