cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gristy
Resident Rockstar
Resident Rockstar

does not support HTTP PATCH method

Hi Guys,

 

I am trying to create a child note in my global navigation in sharepoint.

 

Receiving error:

{
"status": 400,
"message": "The type SP.NavigationNodeCollection does not support HTTP PATCH method.\r\nclientRequestId: 960fefd4-9a7e-4074-92de-3ffd9a87686c\r\nserviceRequestId: 5519ba9e-7034-8000-177e-f0e3098880d2",
"source": "https://kkit365.sharepoint.com/_api/Web/Navigation/GetNodeById(2008)/children",
"errors": [
"-1",
"Microsoft.SharePoint.Client.InvalidClientQueryException"
]
}

 

Picture here

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

This is with POST.

 

However i have fixed it!.

 

The Flow was trying to update Navigation to something like /sites/customername/pages/home.aspx

 

Flow was trying to access that page and failing.

 

Settting it has the full URL did not work i.e. https://tenant.sharepoint.com/sites/customername/pages/home.aspx

 

Same Error it would detect it was this tenant and still try to access via only  /sites/customername/pages/home.aspx

 

Finally i solved it by setting the link url to the following:

 

//tenant.sharepoint.com/sites/customername/pages.home.aspx

 

This link works in SharePoint and via the API.

 

Not the best solution but it works!.

View solution in original post

2 REPLIES 2
aprildunnam
Power Participant
Power Participant

That should be a POST method and not a PATCH in your Flow

This is with POST.

 

However i have fixed it!.

 

The Flow was trying to update Navigation to something like /sites/customername/pages/home.aspx

 

Flow was trying to access that page and failing.

 

Settting it has the full URL did not work i.e. https://tenant.sharepoint.com/sites/customername/pages/home.aspx

 

Same Error it would detect it was this tenant and still try to access via only  /sites/customername/pages/home.aspx

 

Finally i solved it by setting the link url to the following:

 

//tenant.sharepoint.com/sites/customername/pages.home.aspx

 

This link works in SharePoint and via the API.

 

Not the best solution but it works!.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (3,772)