Update app usage policy
Set or update the usage policy for a specific app in your organization.
This endpoint replaces the app's entire usage policy instead of merging with it. It removes any custom rule that isn't included in custom_rules, so a request that omits custom_rules clears all existing custom rules for the app.
Valid base_rule and custom_rules outcome values are approve, tolerate, nudge, and block. Custom rule outcomes must differ from the base rule, and a team, role, or user must not appear in more than one custom rule.
app_name must match an app already discovered in your organization, and every value in team_names, role_names, and user_emails must match an existing team, role, or monitored user in your organization. Unrecognized values return a 422 response rather than being ignored.
Apps that were admin-consented through Microsoft Entra are always approved and reject usage policy updates.
Required API key permissions: User Risk + ReadWrite (select when creating API key in Account Settings)
Request
- Base URLhttps://cyber-risk.upguard.com/api/public
- AuthAPI key in header Authorization
- TypeScripthttps://skmtc.dev/upguard/apis/upguard-cyberrisk-api/docs/user_risk/apps/usage_policy/update/post.tsA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"app_name": "dropbox",
"base_rule": "tolerate"
}Response
Successful response is empty
Changes
No recorded changes to this operation across all 1 revision of this API.