Skip to main content

Update the contents of a protection policy

PUT 

/api/v1/ProtectionPolicy/ResourcesAndGroups/:protectionPolicyId

Replaces a policy's settings, protected groups, resources and resource groups with those in the request, then reschedules protection. New resources that do not exist, have no host, or are Entra ID tenants are skipped. Returns an object holding the updated policy and the number of resources added.

Permission required: Administrators and application accounts.

Caution: The call also saves the name, description and groupMonitorInterval from the body and clears any disabled or deleted flag, so send the full current policy with your changes. A resource group identifier that does not exist makes the call fail with a server error.

Request​

Responses​

An object with data (the updated policy) and recordsTotal (the number of resources added).