alert-policies

Translate Org Alert Triage

Changed on

Translate a legacy alert triage payload — the same body as POST /v0/orgs/{org_slug}/triage/alerts — into the resolution or policy-rule requests that replace it. Nothing is created. Policy-rule translations target the default (Main) policy, which covers repositories without a policy label; labeled policies do not inherit those rules, so POST the same body to /alert-policies/{id}/rules if the rule should apply there. Entries that cannot be translated are returned in untranslatable; the rest are in translations. Requires one of: triage:alerts-update, alert-policy:read, or alert-resolution:create.

This endpoint consumes 1 unit of your quota.

This endpoint requires the following org token scopes:

  • No Scopes Required, but authentication is required
post/orgs/{org_slug}/alert-policies/migration/translate

Request

  • Base URL
    https://api.socket.dev/v0
  • URL
    https://api.socket.dev/v0/orgs/{org_slug}/alert-policies/migration/translate
  • Auth
    • HTTP bearer
    • or HTTP basic

Path parameters

org_slugstring required

The slug of the organization

Request body

Response

Translated requests, plus any entries that have no equivalent.

Changes