Forum Discussion
viktorjonsson
Feb 26, 2019Copper Contributor
Unable to update InformationRightsManagement using REST (sharepoint-online)
The following request returns status 204, indicating it was a success but the informationrights settings hasn't become updated when I take a look the IRM-settings in the web gui for the list. The...
- Feb 26, 2019
I'm sorry InformationRightsManagementSettings attribute is Read Only from REST API, while IrmEnabled is Read and Write.
Try to make a post directly to this endpoint /<site>/_api/web/lists(listid)/InformationRightsManagementSettings/allowPrint ( https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-visio/jj247181%28v%3doffice.15%29 ) it seems to be supported :)
Cheers,
Federico
viktorjonsson
Feb 28, 2019Copper Contributor
May I ask what json payload you're sending when you post directly to .../AllowPrint?
I'm trying the following and get status code 200 back but the boolean value does not change.
await MakeJsonRequestAsync(
new { AllowPrint = true },
"/_api/web/lists('" +listId+ "')/InformationRightsManagementSettings/allowPrint",
newSiteUrl,
accessToken,
HttpMethod.Post,
headers: new Dictionary() { }
);Mar 01, 2019