createRow method

Future<DynamiteResponse<RowocsCreateRowResponseApplicationJson, void>> createRow({
  1. required RowocsCreateRowNodeCollection nodeCollection,
  2. required int nodeId,
  3. required RowocsCreateRowRequestApplicationJson $body,
  4. bool? oCSAPIRequest,
})

api v2 Create a new row in a table or a view.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • nodeCollection Indicates whether to create a row on a table or view.
  • nodeId The identifier of the targeted table or view.
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: Row returned
  • 403: No permissions
  • 400: Invalid request parameters
  • 404: Not found
  • 500: Internal error

See:

Implementation

Future<_i1.DynamiteResponse<RowocsCreateRowResponseApplicationJson, void>> createRow({
  required RowocsCreateRowNodeCollection nodeCollection,
  required int nodeId,
  required RowocsCreateRowRequestApplicationJson $body,
  bool? oCSAPIRequest,
}) async {
  final _request = $createRow_Request(
    nodeCollection: nodeCollection,
    nodeId: nodeId,
    oCSAPIRequest: oCSAPIRequest,
    $body: $body,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

  final _serializer = $createRow_Serializer();
  return _i1.ResponseConverter<RowocsCreateRowResponseApplicationJson, void>(_serializer).convert(_response);
}