I've created workflow for breaking inheritance rule of list item. I am using breakroleinheritance command to break the role using Rest API call by workflow. After breaking the rule, I am assigning new role to list item.
Here is the code for Rest API:
I've passed header also:
Accept : application/json;odata=verbose Content-Type : application/json;odata=verbose X-RequestDigest : digestValue
I am getting digestValue properly by calling RestAPI correct.
When I call above API, I am getting UnAuthorized response in Log.
Note: Above code is working well with http, I am trying with https. I am also working with sharepoint designer 2013