
Announcements
I am attempting to create a file and then use the Send an HTTP request to SharePoint action to check in a document to a library but I can't get the Uri param quite right.
I have been trying variations of this: https://tenant/sites/MySiteName/_api/web/getFileByServerRelativeUrl('[Internal name of the library]/[Name of the document].docx')/Checkin()
There is just the library, no folders.
I also tried adding a / right before Internal Name of the library, but I consistently get the error Server relative urls must start with SPWeb.ServerRelativeUrl. Also tried the display name of the library (which is different) but none of these combinations are working for me.
The most common error I am getting is serverRelativeUrl Parameter name: Specified value is not supported for the serverRelativeUrl parameter. Can anyone suggest how to modify this to get the file?
Final Uri property:
_api/web/getFileByServerRelativeUrl('/sites/MySiteName/InternalLibraryName/DocumentName.ext')/Checkin()