Skip to main content
replaced http://sharepoint.stackexchange.com/ with https://sharepoint.stackexchange.com/
Source Link

According to http://sharepoint.stackexchange.com/a/113322/47068https://sharepoint.stackexchange.com/a/113322/47068 you need change

https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)

to

https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/ListItemAllFields/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)

According to http://sharepoint.stackexchange.com/a/113322/47068 you need change

https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)

to

https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/ListItemAllFields/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)

According to https://sharepoint.stackexchange.com/a/113322/47068 you need change

https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)

to

https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/ListItemAllFields/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)
added 6 characters in body
Source Link
Robert Lindgren
  • 24.5k
  • 12
  • 53
  • 79

According to http://sharepoint.stackexchange.com/a/113322/47068 you need change
https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)
to
https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/ListItemAllFields/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)

https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)

to

https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/ListItemAllFields/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)

According to http://sharepoint.stackexchange.com/a/113322/47068 you need change
https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)
to
https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/ListItemAllFields/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)

According to http://sharepoint.stackexchange.com/a/113322/47068 you need change

https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)

to

https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/ListItemAllFields/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)
Source Link
M.S.A
  • 76
  • 5

According to http://sharepoint.stackexchange.com/a/113322/47068 you need change
https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)
to
https://mysite/_api/web/GetFolderByServerRelativeUrl('/DocLib/folder1')/ListItemAllFields/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)