createShare method

Future<DynamiteResponse<Share, void>> createShare({
  1. required Api1CreateShareRequestApplicationJson $body,
})

Create a new share.

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.

Status codes:

  • 200: Share returned
  • 403: No permissions
  • 500
  • 404: Not found

See:

Implementation

Future<_i1.DynamiteResponse<Share, void>> createShare({required Api1CreateShareRequestApplicationJson $body}) async {
  final _request = $createShare_Request(
    $body: $body,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

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