Enable Spike Protection
POST /api/0/organizations/{organization_id_or_slug}/spike-protections/
Enables Spike Protection feature for some of the projects within the organization.
Path Parameters
- organization_id_or_slug(string)REQUIRED
- The ID or slug of the organization the projects belong to 
Body Parameters
- projects(array(string))REQUIRED
- Slugs of projects to enable Spike Protection for. Set to - $allto 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
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/spike-protections/ \ -H 'Authorization: Bearer <auth_token>' \ -H 'Content-Type: application/json' \ -d '{}'
RESPONSE
CopiedSuccess.
Was this helpful?