我正试图点击office 365 API中的复制笔记本端点,AM收到错误 以下是请求,
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
回复(状态代码https://graph.microsoft.com/v1.0/me/onenote/sections/0-E41A205B596D8755!113/copyToNotebook',
headers:
{ 'postman-token': '02155b4d-a5f9-e389-28ad-21cf0a6b3ed2',
'cache-control': 'no-cache',
accept: 'application/json',
'content-type': 'application/json',
authorization: 'Bearer xxxxxx'
}
body:
{ id: '0-E41A205B596D8755!122',
groupId: 'groupId-value',
renameAs: 'renameAs-value' },
json: true };
)
501
请在这里提出解决方案,如果我在这里错过了什么。
答案 0 :(得分:0)
您没有发送有效的JSON有效负载。确保你的键和值被正确引用:
{
"id": "0-E41A205B596D8755!122",
"groupId": "groupId-value",
"renameAs": "renameAs-value"
}