Skip to main content
PUT
AhaSend Go SDK
The AhaSend API changes one list. Access requires lists:write. Fields:
  • A field that you leave out or send as null does not change.
  • tags replaces all stored tags. An empty array removes them.
  • name, description and tags follow the same rules as in Create List. A field that you cannot write is refused with 400, and the message names it.
  • A stored value that is outside these rules still reads back as it is. The API refuses it only when you send it back in an update.

Authorizations

Authorization
string
header
required

API key for authentication. Non-empty Security Requirement values are AhaSend API-key roles. Roles listed within one requirement object are jointly required; separate requirement objects are alternatives.

Path Parameters

account_id
string<uuid>
required

Account ID

list_id
string<uuid>
required

List ID

Body

application/json

A partial list update. An omitted or null property leaves the stored value unchanged; a present tags array replaces the stored tags, and an empty one clears them. A property that is not writable is rejected with 400 naming it.

name
string | null

Trimmed before it is measured and stored, exactly as on create. The bound counts characters rather than bytes, and a name that is empty after trimming is rejected.

Required string length: 1 - 255
description
string | null

Trimmed and bounded exactly as on create.

Maximum string length: 1000
tags
string[] | null

Normalized and bounded exactly as on create.

Response

Updated list

A static, private, single opt-in container of contacts, and the unit a campaign targets.

object
enum<string>
required

Object type identifier

Available options:
contact_list
id
string<uuid>
required

Unique identifier for the list

created_at
string<date-time>
required

When the list was created

updated_at
string<date-time>
required

When the list was last updated

name
string
required

List name; names are not unique within an account

description
string
required

Free-text description; empty when none was given

tags
string[]
required

Always present; an empty array when the list carries no tags

contact_count
integer
required

The list's subscribers: the members a campaign to this list would reach. A member counts when its membership is confirmed and the contact is enabled, not unsubscribed from everything, and not found invalid by validation. It is the same number the dashboard shows.

Required range: x >= 0