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)
REQUIRED

The slug of the organization the projects belong to

Body Parameters

projects (array(string))
REQUIRED

Slugs of projects to enable Spike Protection for. Set to $all to enable Spike Protection for all the projects in the organization.

Scopes

<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.