Skip to main content
PUT
Enable or pause a project's auto-scan-on-merge

Authorizations

Authorization
string
header
required

An Earnie API key, sent as Authorization: Bearer sk_earnie_.... Create one under Settings > API keys. The key's scopes decide which operations it may call.

Path Parameters

projectId
string<uuid>
required

Body

application/json

Per-project opt-out for automatic scan-on-merge. false pauses automatic scan-on-merge for the project; the state is the project's provider.push event subscription — disconnecting the repository removes the subscription, and reconnecting it re-enables automatic scanning.

enabled
boolean
required

Whether automatic scan-on-merge is active for this project.

Response

The updated auto-scan-on-merge setting.

Per-project opt-out for automatic scan-on-merge. false pauses automatic scan-on-merge for the project; the state is the project's provider.push event subscription — disconnecting the repository removes the subscription, and reconnecting it re-enables automatic scanning.

enabled
boolean
required

Whether automatic scan-on-merge is active for this project.