I need to modify/enable the Information Rights Management of a document library on Sharepoint online modern site. I need to use REST API for this.
I can get the data using "_api/web/defaultDocumentLibrary/InformationRightsManagementSettings", but I am not able to update it.