Forum Discussion
yagcioe
Feb 01, 2021Copper Contributor
Update Group SharePoint Custom Field Collums after Fileupload with REST Graph API in Javascript
Hi, I've made an upload with Graph with the following JS code: async function uploadSingleFileMetaToSharepoint(file, name, metaData, groupId, graphAccessToken) {
//console.log(file, n...
- Feb 01, 2021
yagcioe
NVM got it now:the request abouve returns an item id and the group id is already know, therfore
PATCH https://graph.microsoft.com/v1.0/groups/{g-id}/drive/items/{item-id}/ListItem/fields
is working.
The body of the request looks like{ "FieldName":"Value", ... }
yagcioe
Feb 01, 2021Copper Contributor
yagcioe
NVM got it now:
the request abouve returns an item id and the group id is already know, therfore
PATCH https://graph.microsoft.com/v1.0/groups/{g-id}/drive/items/{item-id}/ListItem/fields
is working.
The body of the request looks like
{
"FieldName":"Value",
...
}