setAccessPointConfigWithHttpInfo method

Future<Response> setAccessPointConfigWithHttpInfo(
  1. AccessPointConfig accessPointConfig, {
  2. String? uuidToken,
})

Edit the Access Point configuration

Edits the Access Point configuration. If the configuration fails, the entire proccess is rolled back and an error will be returned.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> setAccessPointConfigWithHttpInfo(
  AccessPointConfig accessPointConfig, {
  String? uuidToken,
}) async {
  // ignore: prefer_const_declarations
  final path = uuidToken != null
      ? '${LbSetupEnvironment.getApiEndpoint(iotUuid: uuidToken)}/network/accesspoint/config'
      : '/network/accesspoint/config';

  // ignore: prefer_final_locals
  Object? postBody = accessPointConfig;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}