code: public ApiSuccessResponse assignInteractionToContact(String id, AssignInteractionToContactData assignInteractionToContactData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = assignInteractionToContactWithHttpInfo(id, assignInteractionToContactData);
          return resp.getData();
      }
docs: Assign the interaction to a contact
  
  @param id id of the Interaction (required)
  @param assignInteractionToContactData  (required)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body