Update Org Alert Policy
Changed onUpdate an alert policy. Only the provided fields change; repository_ids replaces the full set of repositories the policy scopes to. The default policy cannot be renamed and its scope is implicit. Requires a token with org-wide repository access; repo-restricted tokens receive 403.
This endpoint consumes 1 unit of your quota.
This endpoint requires the following org token scopes:
- alert-policy:update
Request
- Base URLhttps://api.socket.dev/v0
- URLhttps://api.socket.dev/v0/orgs/{org_slug}/alert-policies/{policy_id}
- Auth
- HTTP bearer
- or HTTP basic
Path parameters
The slug of the organization
The ID of the alert policy: a UUID, or default for the default policy
Query parameters
Rehearse the write: authorize and validate the request and return the response body a real write would produce, then discard it. Accepts true, 1, or yes. Other present values return 400 so a typo cannot persist. Nothing is persisted. A dry-run success is HTTP 200 with dry_run: true, not 201.
Request body
Response
The updated alert policy. Dry-run responses include dry_run: true and were not persisted.
Changes
- info
endpoint added
- info