Skip to main content
POST
/
v1
/
hubs
/
{hub_id}
/
email-suppressions
Create an admin_block suppression for a hub
curl --request POST \
  --url https://api.member.dev/v1/hubs/{hub_id}/email-suppressions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "email_address": "jsmith@example.com",
      "reason": "admin_block"
    },
    "type": "email_suppressions"
  }
}
'
{
  "data": {
    "attributes": {
      "email_address": "<string>",
      "is_active": true,
      "reason": "<string>",
      "scope": "<string>",
      "suppressed_at": "<unknown>",
      "hub_id": "<string>",
      "lifted_at": null,
      "lifted_by": "<string>",
      "source_event_type": "<string>",
      "team_id": "<string>"
    },
    "id": "<string>",
    "links": {},
    "type": "email_suppressions"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

hub_id
string
required

Body

application/vnd.api+json
data
HubCreateSuppressionData · object
required

Response

Successful Response

Single-resource JSON:API response.

data
SuppressionResource · object
required

JSON:API resource object for email-suppression.