updateAssetsWithHttpInfo method
Future<Response>
updateAssetsWithHttpInfo(
- String companyId,
- String assetId,
- AssetsUpdate assetsUpdate
Update an existing asset 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
-
AssetsUpdate assetsUpdate (required):
Implementation
Future<Response> updateAssetsWithHttpInfo(String companyId, String assetId, AssetsUpdate assetsUpdate,) async {
// ignore: prefer_const_declarations
final path = r'/companies/{company_id}/assets/{asset_id}'
.replaceAll('{company_id}', companyId)
.replaceAll('{asset_id}', assetId);
// ignore: prefer_final_locals
Object? postBody = assetsUpdate;
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,
);
}