问题描述
在通过其余客户端(PostMan)在OneDrive for Business(Admin)中创建/重命名文件时,我遇到问题.
I have an issue while creating / renaming files in OneDrive for Business(Admin) through rest client(PostMan).
你们能指出我在哪里可以找到该教程或任何说明创建/重命名文件的特定要求/限制的文档.
Can you guys point me where i can find the tutorial or any documentation that states any specific requirements / restrictions for creating / renaming a file.
请找到以下请求的详细信息.
Please find the below details of the request.
URL: https://graph.microsoft.com/v1.0/cloudfuze.co /users/ {user_id}/drive/items/{parent_id}/children/{file_name}/content
URL :https://graph.microsoft.com/v1.0/cloudfuze.co/users/{user_id}/drive/items/{parent_id}/children/{file_name}/content
Ex文件名:(test).jpg
Ex File Name : (test).jpg
标题:
{
Authorization:Bearer XXXXXXXXXXXXXXXX,
Accept:application/json,
Content-Type:application/json
}
推荐答案
您可以使用以下表示法来创建名称中带有括号的文件: https://graph.microsoft.com/v1.0/users/{user_id}/drive/items/{parent_id}/children('{file_name}')/content
You can use the following notation to create files with parenthesis in name:https://graph.microsoft.com/v1.0/users/{user_id}/drive/items/{parent_id}/children('{file_name}')/content
例如: https://graph.microsoft.com/v1.0/me/drive/root/children('text(a).abc')/content
这篇关于无法创建/重命名带有特殊字符“("的文件(打开括号)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!