createComponentByUuid function

Future<ApiResponse<ComponentByUuid>> createComponentByUuid(
  1. ExsitedClient client,
  2. Object componentUuid,
  3. Object payload, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

POST /api/{api_version}/component/{component_uuid}

Answered 201 under the component's name.

Implementation

Future<ApiResponse<ComponentByUuid>> createComponentByUuid(
  ExsitedClient client,
  Object componentUuid,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPostRequest(CustomComponentsUrls.componentByUuid,
        pathParams: {'component_uuid': componentUuid},
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: ComponentByUuid.fromMap);