Enable Spike Protection
POST /api/0/organizations/{organization_slug}/spike-protections/
Enables Spike Protection feature for some of the projects within the organization.
Path Parameters
organization_slug
(string)REQUIREDThe slug of the organization the projects belong to
Body Parameters
projects
(array(string))REQUIREDSlugs of projects to enable Spike Protection for. Set to
$all
to enable Spike Protection for all the projects in the organization.
Scopes
You need to authenticate via bearer auth token.
<auth_token>
requires one of the following scopes:project:read
project:write
project:admin
curl https://sentry.io/api/0/organizations/{organization_slug}/spike-protections/ \ -H 'Authorization: Bearer <auth_token>' \ -H 'Content-Type: application/json' \ -d '{}'
RESPONSE
Success.