updateEndpointsWithHttpInfo method

Future<Response> updateEndpointsWithHttpInfo(
  1. String companyId,
  2. String endpointId,
  3. EndpointsUpdate endpointsUpdate
)

Update an existing endpoint by ID

Note: This method returns the HTTP Response.

Parameters:

  • String companyId (required): Unique identifier for the Company

  • String endpointId (required): Unique identifier for the Endpoint

  • EndpointsUpdate endpointsUpdate (required):

Implementation

Future<Response> updateEndpointsWithHttpInfo(String companyId, String endpointId, EndpointsUpdate endpointsUpdate,) async {
  // ignore: prefer_const_declarations
  final path = r'/companies/{company_id}/endpoints/{endpoint_id}'
    .replaceAll('{company_id}', companyId)
    .replaceAll('{endpoint_id}', endpointId);

  // ignore: prefer_final_locals
  Object? postBody = endpointsUpdate;

  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,
  );
}