使用 Graph REST 创建新的 SharePoint 列 API
Creating a new SharePoint column using Graph REST API
我一直在研究一个函数,该函数将值放入列表列(如果存在)。但是,如果它不存在(我使用 GET https://graph.microsoft.com/v1.0/drives/{driveID}/list/columns"
检查),我希望它创建一个列表列。如何使用 Microsoft Graph 的 REST API 在 SharePoint 中创建新列?我已经搜索了文档,但到目前为止还不够。
HTTP :
POST https://graph.microsoft.com/v1.0/me/drive/items/{id}/workbook/tables/{id|name}/columns
Content-type: application/json
Content-length: 81
{
“编号”:99,
"姓名": "name-value",
“指数”:99,
“价值观”:“values-value”
}
响应:HTTP
HTTP/1.1 201 已创建
Content-type: application/json
Content-length: 81
{
“编号”:99,
"姓名": "name-value",
“指数”:99,
“价值观”:“values-value”
}
回应:
如果成功,此方法 returns 201 在响应正文中创建响应代码和 WorkbookTableColumn 对象。
更多详情:https://docs.microsoft.com/en-us/graph/api/table-post-columns?view=graph-rest-1.0&tabs=http
根据 API documents, there is no such an endpoint to update a list. I believe the related functionality has not been released. You can submit the feedback on Microsoft Graph Feature Requests or turn to the old sharepoint rest api:
我一直在研究一个函数,该函数将值放入列表列(如果存在)。但是,如果它不存在(我使用 GET https://graph.microsoft.com/v1.0/drives/{driveID}/list/columns"
检查),我希望它创建一个列表列。如何使用 Microsoft Graph 的 REST API 在 SharePoint 中创建新列?我已经搜索了文档,但到目前为止还不够。
HTTP :
POST https://graph.microsoft.com/v1.0/me/drive/items/{id}/workbook/tables/{id|name}/columns
Content-type: application/json
Content-length: 81
{ “编号”:99, "姓名": "name-value", “指数”:99, “价值观”:“values-value” }
响应:HTTP
HTTP/1.1 201 已创建 Content-type: application/json Content-length: 81
{ “编号”:99, "姓名": "name-value", “指数”:99, “价值观”:“values-value” }
回应: 如果成功,此方法 returns 201 在响应正文中创建响应代码和 WorkbookTableColumn 对象。
更多详情:https://docs.microsoft.com/en-us/graph/api/table-post-columns?view=graph-rest-1.0&tabs=http
根据 API documents, there is no such an endpoint to update a list. I believe the related functionality has not been released. You can submit the feedback on Microsoft Graph Feature Requests or turn to the old sharepoint rest api: