<commit_before># Blacklist API

## Add a blacklist entry

``` ruby
params = Attune::Model::BlacklistParams.new
params.ids = [1,2,3]
params.entity_type = 'products'
scope = Attune::Model::ScopeEntry.new
scope.name = 'page'
scope.value = 'sale'
params.scope = [scope]
params.active_from = '2012-06-04 19:00:00'
params.active_to = '2012-06-06 19:00:00'
response = client.entities.blacklist_save(params)
blacklist_id = response.id
```

## Retrieve a blacklist entry

``` ruby
blacklist = client.entities.blacklist_get(blacklist_id)
```

## Update a blacklist entry

``` ruby
params = Attune::Model::BlacklistParams.new
params.disabled = true
client.entities.blacklist_update(blacklist_id, params)
```

## Delete a blacklist entry

``` ruby<commit_msg>update blacklist docs with ISO 8601 date format<commit_after># Blacklist API

## Add a blacklist entry

``` ruby
params = Attune::Model::BlacklistParams.new
params.ids = [1,2,3]
params.entity_type = 'products'
scope = Attune::Model::ScopeEntry.new
scope.name = 'page'
scope.value = 'sale'
params.scope = [scope]
params.active_from = DateTime.now
params.active_to = DateTime.now + 7
response = client.entities.blacklist_save(params)
blacklist_id = response.id
```

## Retrieve a blacklist entry

``` ruby
blacklist = client.entities.blacklist_get(blacklist_id)
```

## Update a blacklist entry

``` ruby
params = Attune::Model::BlacklistParams.new
params.disabled = true
client.entities.blacklist_update(blacklist_id, params)
```

## Delete a blacklist entry

``` ruby
{'fraction_non_alphanumeric': 0.13672391017173052, 'fraction_numerical': 0.025759577278731835, 'mean_word_length': 5.763392857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4279625', 'n_tokens_mistral': 547, 'n_tokens_neox': 505, 'n_words': 115}