code: public ApiSuccessResponse assignContact(String mediatype, String id, String contactId, AssignContactData assignContactData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = assignContactWithHttpInfo(mediatype, id, contactId, assignContactData);
          return resp.getData();
      }
docs: Assign the contact to the open interaction
  Assign the contact to the open interaction specified in the contactId path parameter
  @param mediatype media-type of interaction (required)
  @param id id of interaction (required)
  @param contactId id of contact (required)
  @param assignContactData Request parameters. (optional)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body