Sha256: 887d8299249434d78d67b21ffb910ab7370dfd6b3f3c19842cb9dc2fb9cd9c87

Contents?: true

Size: 897 Bytes

Versions: 10

Compression:

Stored size: 897 Bytes

Contents

# 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
client.entities.blacklist_delete(blacklist_id)
```

## Get all blacklists for your account

``` ruby
response = client.entities.blacklist_get_all()
all_blacklists  = response.blacklists
```

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
attune-1.0.21 blacklist.md
attune-1.0.20 blacklist.md
attune-1.0.19 blacklist.md
attune-1.0.18 blacklist.md
attune-1.0.17 blacklist.md
attune-1.0.16 blacklist.md
attune-1.0.15 blacklist.md
attune-1.0.14 blacklist.md
attune-1.0.13 blacklist.md
attune-1.0.12 blacklist.md