traffic-exclusions
GET
https://lucidace.com /v1/projects/{project_id}/traffic-exclusions Scope settings:readParameters
project_idstringpathrequiredtrashbooleanqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/traffic-exclusions"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"deleted_at": "2024-01-01T00:00:00Z",
"enabled": true,
"id": "string",
"key": "string",
"kind": "string",
"note": "string",
"value": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
created_atstringrequireddeleted_atstringSet while the rule is in the trash (restorable).
enabledbooleanrequiredidstringrequiredkeystring*_property rules: the property key.kindstringrequiredip_cidr | hostname | path | event_property | person_propertynotestringrequiredvaluestringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/traffic-exclusions Scope settings:writeParameters
project_idstringpathrequiredRequest body
application/json
keystringRequired for
*_property: the property key.kindstringrequiredip_cidr | hostname | path | distinct_id | event_property | person_propertynotestringvaluestringrequiredip_cidr: address or CIDR (needs IP capture on); hostname / path / distinct_id: exact or * glob; *_property: the value that marks traffic to hide.{
"key": "string",
"kind": "string",
"note": "string",
"value": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/traffic-exclusions" \
-H "Content-Type: application/json" \
-d '{"key":"string","kind":"string","note":"string","value":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"deleted_at": "2024-01-01T00:00:00Z",
"enabled": true,
"id": "string",
"key": "string",
"kind": "string",
"note": "string",
"value": "string"
}Schema
created_atstringrequireddeleted_atstringSet while the rule is in the trash (restorable).
enabledbooleanrequiredidstringrequiredkeystring*_property rules: the property key.kindstringrequiredip_cidr | hostname | path | event_property | person_propertynotestringrequiredvaluestringrequired400
403
404
POST
https://lucidace.com /v1/projects/{project_id}/traffic-exclusions/preview Scope settings:readParameters
project_idstringpathrequiredRequest body
application/json
daysintegerLook-back in days (default 30, at most 365).
rulesRuleBody[]requiredDraft rules (1 to 100), counted together.
Show child parameters
keystringRequired for
*_property: the property key.kindstringrequiredip_cidr | hostname | path | distinct_id | event_property | person_propertynotestringvaluestringrequiredip_cidr: address or CIDR (needs IP capture on); hostname / path / distinct_id: exact or * glob; *_property: the value that marks traffic to hide.{
"days": 0,
"rules": [
{
"key": "string",
"kind": "string",
"note": "string",
"value": "string"
}
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/traffic-exclusions/preview" \
-H "Content-Type: application/json" \
-d '{"days":0,"rules":[{"key":"string","kind":"string","note":"string","value":"string"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"days": 0,
"events": 0,
"persons": 0,
"sessions": 0
}Schema
daysintegerrequiredeventsintegerrequiredMatching events, sessions and people the rules would hide.
personsintegerrequiredsessionsintegerrequired400
404
503
DELETE
https://lucidace.com /v1/projects/{project_id}/traffic-exclusions/{id} Scope settings:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/traffic-exclusions/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 the rule, now in the trash (restorable)
Same as 201 · POST /v1/projects/{project_id}/traffic-exclusions
403
404
PATCH
https://lucidace.com /v1/projects/{project_id}/traffic-exclusions/{id} Scope settings:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
enabledbooleanrequired{
"enabled": true
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/traffic-exclusions/{id}" \
-H "Content-Type: application/json" \
-d '{"enabled":true}'TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/traffic-exclusions/{id}/restore Scope settings:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/traffic-exclusions/{id}/restore"TypeScript
Python
Go
PHP
Ruby
Java
Updated