ConfigurationUpdate settings

PUT /v1/projects/{project}/scoring/settings

Update a project's enforcement toggles and bot threshold. Changes bust the verdict cache so they take effect promptly.

curl -X PUT https://api.botect.ai/v1/projects/123/scoring/settings \
  -H "Authorization: Bearer YOUR_ACCOUNT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "block_definite": true,
    "challenge_likely": true,
    "likely_bot_threshold": 40
  }'
{
  "bot_settings": {
    "allow_verified": true,
    "protect_static": true,
    "block_definite": true,
    "challenge_likely": true
  },
  "likely_bot_threshold": 40
}

Updates the project's enforcement toggles and the likely-bot threshold. This is the 90% control surface — most tuning happens here, without writing rules. Changes bust the verdict cache so they take effect within the cache window.

PUT https://api.botect.ai/v1/projects/{project}/scoring/settings

Authentication

Account API token via Authorization: Bearer <token>. The project must belong to the token's account. See Authentication.

Path parameters

Body

All fields are optional — send only what you want to change.

body
allow_verifiedboolean

Verified bots → allow, regardless of score. Default true.

body
protect_staticboolean

When false, static-resource requests are skipped (allow). Default true.

body
block_definiteboolean

When true, band definiteblock. Default false.

body
challenge_likelyboolean

When true, band likely_automatedchallenge. Default false.

body
likely_bot_thresholdinteger

The bot/human boundary T, 199. Default 30. Higher is more suspicious.

Example

Response fields

bot_settingsobject
Required

The project's toggles after the update.

likely_bot_thresholdinteger
Required

The threshold T after the update.

Errors

StatuscodeWhen
401UNAUTHENTICATEDMissing / bad account token
403Project does not belong to the token's account
422INVALID_PAYLOADA toggle is non-boolean or likely_bot_threshold is out of range

See Score bands for how these settings drive the verdict action.