Skip to main content
PUT
/
suppression-groups
/
{groupId}
curl --request PUT \
  --url 'https://api.autosend.com/v1/suppression-groups/AB12C3' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Marketing Unsubscribes — Updated",
    "description": "Users who opted out of all marketing emails",
    "isActive": true
  }'
{
  "success": true,
  "data": {
    "id": "AB12C3",
    "name": "Marketing Unsubscribes — Updated",
    "description": "Users who opted out of all marketing emails",
    "isActive": true,
    "isGlobal": false
  }
}
curl --request PUT \
  --url 'https://api.autosend.com/v1/suppression-groups/AB12C3' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Marketing Unsubscribes — Updated",
    "description": "Users who opted out of all marketing emails",
    "isActive": true
  }'
{
  "success": true,
  "data": {
    "id": "AB12C3",
    "name": "Marketing Unsubscribes — Updated",
    "description": "Users who opted out of all marketing emails",
    "isActive": true,
    "isGlobal": false
  }
}

Authorizations

Authorizations
string | header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

groupId
string
required
The unique identifier of the suppression group to update.

Body

name
string
Updated display name for the suppression group. Must be between 1 and 200 characters.
description
string
Updated description for the suppression group.
isActive
boolean
Whether the suppression group is active. Defaults to true if not specified.

Authorizations

Authorization
string
header
required

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

Path Parameters

groupId
string
required

The unique identifier of the suppression group to update.

Example:

"AB12C3"

Body

application/json
name
string
Required string length: 1 - 200
Example:

"Marketing Unsubscribes"

description
string
Example:

"Users who opted out of marketing"

isActive
boolean
Example:

true

Response

200 - application/json

The updated suppression group.

success
boolean
Example:

true

data
object