Rest API - move page

Irina K asked on December 26, 2018 18:03

Hi there - anyone has any idea how to move a page using the REST API? I've tried doing an update (target url using the old NodeAliasPath) while updating the NodeAliasPath within the body of the request to the new one but it doesn't seem to be working.

I've considered retrieving the page and re-creating a new one with all the same properties but I think that would lose the version history and publishing which ideally I would like to keep.

Any suggestions would be greatly appreciated.

Correct Answer

David te Kloese answered on December 27, 2018 09:02

Hi,

Any specific errors returned or in the event log?

When using the API directly you would set the new PARENT. So you might want to have a look into setting values related to that. NodeParentID and/or NodeLevel?

Also make sure the page type is allowed in the new location.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Irina K answered on December 27, 2018 16:31 (last edited on December 27, 2018 16:32)

Setting the NodeParentID did the trick. Thanks!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.