2010-05-20 33 views

回答

5

的MSDN link

SPList.ResetRoleInheritance();

0

作爲終點URL在這裏是如何通過JQuery Ajax的功能做一個例子 -

  $.ajax({ 
      url: "*Site URL here*/_api/web/lists/getByTitle('*your list name here*')/items(*item ID here*)/ResetRoleInheritance()", 
      type: "POST", 
      headers: { 
       "Accept": "application/json;odata=verbose", 
       "X-RequestDigest": $("#__REQUESTDIGEST").val(), 
      }, 
      success: function (data) { 
       console.log('Permissions successful applied to list item!'); 
      }, 
      error: function (data) { 
       console.log('Failed!'); 
      } 
     });