Update a suppression group’s name or description using the AutoSend API.
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
}
}
<token>, where <token> is your auth token.true if not specified.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the suppression group to update.
"AB12C3"
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
}
}