createV2PageReactWithHttpInfo method

Future<Response> createV2PageReactWithHttpInfo(
  1. String tenantId,
  2. String urlId,
  3. String id, {
  4. String? title,
})

Performs an HTTP 'POST /page-reacts/v2/{tenantId}' operation and returns the Response. Parameters:

Implementation

Future<Response> createV2PageReactWithHttpInfo(String tenantId, String urlId, String id, { String? title, }) async {
  // ignore: prefer_const_declarations
  final path = r'/page-reacts/v2/{tenantId}'
    .replaceAll('{tenantId}', tenantId);

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'urlId', urlId));
    queryParams.addAll(_queryParams('', 'id', id));
  if (title != null) {
    queryParams.addAll(_queryParams('', 'title', title));
  }

  const contentTypes = <String>[];


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