ConfigurationDelete a rule

DELETE /v1/projects/{project}/rules/{rule}

Delete a custom bot rule from a project.

curl -X DELETE https://api.botect.ai/v1/projects/123/rules/7 \
  -H "Authorization: Bearer YOUR_ACCOUNT_TOKEN"
(empty body)

Permanently deletes a rule. The rule stops being evaluated immediately.

DELETE https://api.botect.ai/v1/projects/{project}/rules/{rule}

Authentication

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

Path parameters

path
ruleinteger
Required

The rule ID to delete.

Example

A successful delete returns 204 No Content.

Errors

StatuscodeWhen
401UNAUTHENTICATEDMissing / bad account token
403Project does not belong to the token's account
404The rule does not exist or does not belong to the project