assignHealthcarePartyWithHttpInfo method

Future<Response> assignHealthcarePartyWithHttpInfo(
  1. String healthcarePartyId
)

Assign a healthcare party ID to current user

UserDto gets returned.

Note: This method returns the HTTP Response.

Parameters:

  • String healthcarePartyId (required):

Implementation

Future<Response> assignHealthcarePartyWithHttpInfo(String healthcarePartyId,) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/user/current/hcparty/{healthcarePartyId}'
      .replaceAll('{healthcarePartyId}', healthcarePartyId);

  // ignore: prefer_final_locals
  Object? postBody;

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

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


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