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
- 200
- 400
- 401
- 403
- 404
An object with data (the updated policy) and recordsTotal (the number of resources added).
The identifier in the body does not match the path.
The request is not signed in, or the sign-in has expired.
The caller is not an administrator or application account.
No protection policy exists with this identifier.