Missing example for transferring odata.type
Under Rename a Folder using MERGE method: "From the result, obtain the odata.type value, such as SP.Data.Shared_x0020_DocumentsItem (the value may be different depending on your library configuration). Then issue a MERGE" It is unclear how to transfer the odata.type from the GET request into the MERGE request. odata.type is not a valid dynamic item in Power Automate.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: da51381a-7a39-8c31-8af8-b05ecafc377a
- Version Independent ID: 693ecf1c-8e75-1f61-0264-fbdefaff0968
- Content: Working with folders and files with REST
- Content Source: docs/sp-add-ins/working-with-folders-and-files-with-rest.md
- Product: sharepoint
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
The sample after the section you quote shows how it should be used. You don't pass the odata.type, rather it's just type as a property of the __metadata object.
It's included in the object submitted in the body of the request, like this:
{
"__metadata": {
"type": "SP.Data.Shared_x0020_DocumentsItem"
}
}
Closing issue as "answered". If you encounter similar issue(s), please open up a NEW issue. Thank you.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues