createComponentObject function

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

POST /api/{api_version}/components/{component_uuid}/objects

Create an instance on v4, under custom_component_object; every key is optional, and parents names the owner.

Implementation

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