Greetings,
I have a local intranet hosted SP site and a Microsoft 365 SP site for validation. I've successfully used the REST api on the Microsoft 365-SP hosted site to create a new list item. Using the exact same method, it does not run on the local intranet hosted SP
site. I’ve reviewed the ‘Site Settings’ – ‘Site Features’ and they appear correct.
Any suggestions?
Note - I'm using SPD. Trying to keep this OOTB.
Dictionary = request header
•Accept : application/json;odata=verbose
•Content-Type : application/json;odata=verbose
•content-length: 255
•X-RequestDigest: achieved by POST - [Site URL]_api/contextinfo and read d/GetContextWebInformation/FormDigestValue
Dictionary = _metadata
• type: SP.Data.[VarListName]ListItem
Dictionary = request content
•__metadata: _metadata
•Title: [title variable]
POST - [site URL]_api/web/lists/getbytitle(‘VarListName’)/items
Kind regards,