Forum Discussion
SharePoint Online Rest API (Add ListItem)
- Aug 08, 2018
Milind Saraswala if you are using the add-in model for authentication, you probably need to define the permissions that the app need when you register at https://xxxx.sharepoint.com/_layouts/15/appregnew.aspx
After you register the app, go to /_layouts/15/appinv.aspx and use the App Id from the registration to Lookup the details. When they load, add the required permissions on the Permission Request XML field.
For your case, I suspect it will look similar to:
<AppPermissionRequests>
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web/list" Right="Write"/> </AppPermissionRequests>
You can find additional information here:
https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/add-in-permissions-in-sharepoint
Hope this helps
You may check if your account has written permission. Go to Site Settings-->People & Group.
I am System Administrator of Office 365, So I have Full Access to the SharePoint Online
- vikram dubbaSep 15, 2018Copper Contributor
Is this working now for you. We are looking for a similar API setup, so wanted to check if this worked for you.
- Milind SaraswalaSep 16, 2018Copper Contributor
Yes it is working :)
- vikram dubbaSep 20, 2018Copper Contributor
Thank you.