rawNewFormDelegationsWithHttpInfo method

Future<Response> rawNewFormDelegationsWithHttpInfo(
  1. String formId,
  2. List<DelegationDto> delegationDto
)

Delegates a form to a healthcare party

It delegates a form to a healthcare party. Returns the form with the new delegations.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> rawNewFormDelegationsWithHttpInfo(String formId, List<DelegationDto> delegationDto,) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/form/delegate/{formId}'.replaceAll('{formId}', formId);

  // ignore: prefer_final_locals
  Object? postBody = delegationDto;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}