ResourcesBlacklists

Update a Blacklist Rule

Update one or more attributes on an existing blacklist rule.

PATCH
/v1/blacklists/{blacklist}

Authorization

bearerAuth
AuthorizationBearer <token>

Provide your SellApp API key as a bearer token.

In: header

Path Parameters

blacklist*integer

The unique identifier of the blacklist rule.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://sell.app/api/v1/blacklists/1" \  -H "Content-Type: application/json" \  -d '{    "type": "WILDCARD_EMAIL",    "data": "@yahoomail.com",    "description": "This email domain is super dangerous"  }'
{
  "data": {
    "id": 1,
    "type": "WILDCARD_EMAIL",
    "data": "@yahoo.com",
    "description": "This email domain is dangerous",
    "created_at": "2022-12-12T12:12:12.000000Z",
    "updated_at": "2022-12-12T12:12:12.000000Z",
    "store_id": 1
  }
}
{
  "message": "Unauthenticated."
}
{
  "message": "Blacklist rule not found."
}
{
  "message": "The given data was invalid.",
  "errors": {
    "data": [
      "The data field is required."
    ]
  }
}