Skip to main content
PATCH
/
apps
/
{provider}
/
blocklist
/
{ruleId}
Toggle a blocklist rule
curl --request PATCH \
  --url https://api.onecli.sh/v1/apps/{provider}/blocklist/{ruleId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Path Parameters

provider
string
required

App provider identifier (e.g., gmail, github, jira)

ruleId
string
required

Blocklist rule ID (from the blocklist state's ruleId field)

Body

application/json
enabled
boolean
required

Response

200 - application/json

Rule toggled

success
boolean