alert-policies
Create Org Alert Policy
Changed onCreate an alert policy. A repo label with the same name is created to scope the policy; repositories carrying that label are governed by the policy. 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:create
post/orgs/{org_slug}/alert-policies
Request
- Base URLhttps://api.socket.dev/v0
- URLhttps://api.socket.dev/v0/orgs/{org_slug}/alert-policies
- Auth
- HTTP bearer
- or HTTP basic
Path parameters
org_slugstring required
The slug of the organization
Query parameters
dry_runboolean
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
Dry-run: the write was not persisted.
Changes
- info
endpoint added
- info