如何停止OneNote API返回已删除页面的ID [英] How to Stop OneNote API From Returning ID for Deleted Pages

查看:100
本文介绍了如何停止OneNote API返回已删除页面的ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用OneNote REST API进行了调用,以返回部分中所有页面的列表.这可以成功工作.但是,它返回的某些页面应该不再存在!即使它们以前已被删除,我仍然可以看到它们的信息,ID等.但是,如果我尝试再次使用REST删除它们,则会收到错误消息:

I place a call using the OneNote REST API to return a list of all the pages in a section. This works successfully. However, some of the pages it returns should no longer exist! Yet I can see their information, IDs, etc., even though they have previously been deleted. But if I try to delete them again using REST, I get the error:

ERROR (deleteFromURL):  <Response [404]>
{
    "error":{
      "code":"20102","message":"The specified resource ID does not exist.","@api.url":"http://aka.ms/onenote-errors#C20102"
    }
}

OneNote为何返回不存在的页面(即使几天后),又如何防止它退回呢?

How come OneNote keeps returning pages that no longer exist (even after many days), and how do I prevent it from doing so?

推荐答案

该选项不再可用.

我假设如果您打开OneNote,这些页面在笔记本中确实显示为已删除.您可以尝试将此标头添加到GET〜/pages请求中吗?

I assume these pages do appear as deleted in your notebook if you open OneNote. Can you try adding this header to your GET ~/pages request?

FavorDataRecency: true

这将绕过我们的索引,直接进入您的页面.这会花费更长的时间,但应该保持一致-这样做时您是否看到页面?

This will bypass our index and go directly to your pages. It will take longer but should be consistent - do you see your pages when you do that?

此外,为了更好地对此进行调查,您能否为我们提供-您对GET页面的API请求的X-CorrelationId标头的值(不包含FavorDataRecency标头的标头)-您已删除页面的ID之一

Additionally, to better investigate this on our end, can you provide us with - The value of the X-CorrelationId header of your API request to GET pages (the one without the FavorDataRecency header) - One of the id's of your deleted pages

这篇关于如何停止OneNote API返回已删除页面的ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆