updateComponentObject function

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

PATCH /api/{api_version}/components/{component_uuid}/objects/{component_object_id}

Update an instance on v4; version_id must match when sent, and code, parents and custom_form are refused.

Implementation

Future<ApiResponse<ComponentObjectRecord>> updateComponentObject(
  ExsitedClient client,
  Object componentUuid,
  Object componentObjectId,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPatchRequest(CustomComponentsUrls.componentObject,
        pathParams: {
          'component_uuid': componentUuid,
          'component_object_id': componentObjectId
        },
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: ComponentObjectRecord.fromMap);