updateComponent function

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

PATCH /api/{api_version}/component/{component_uuid}

Update a component definition, the cmp_ id, under component.

Implementation

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