createComponentObjectCustomObjectInstance function

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

POST /api/{api_version}/components/{component_uuid}/objects/{component_object_id}/custom_objects/{custom_object_id}

Create a custom object instance /{component_object_id}/custom_objects/{custom_object_id}, under custom_object_instances with an attributes list; the path has no instances segment.

No typed view: no 2xx response was recorded for it. Read response.map.

Implementation

Future<ApiResponse<Object?>> createComponentObjectCustomObjectInstance(
  ExsitedClient client,
  Object componentUuid,
  Object componentObjectId,
  Object customObjectId,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPostRequest(CustomComponentsUrls.componentObjectCustomObject,
        pathParams: {
          'component_uuid': componentUuid,
          'component_object_id': componentObjectId,
          'custom_object_id': customObjectId
        },
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);