code: public ApiSuccessResponse removeAttachment(String mediatype, String id, String documentId, RemoveAttachmentData removeAttachmentData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = removeAttachmentWithHttpInfo(mediatype, id, documentId, removeAttachmentData);
          return resp.getData();
      }
docs: Remove the attachment of the open-media interaction
  Remove the attachment of the interaction specified in the documentId path parameter
  @param mediatype media-type of interaction to remove attachment (required)
  @param id id of interaction (required)
  @param documentId id of document to remove (required)
  @param removeAttachmentData  (optional)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body