Skip to Content
Pouch
Lists

Update a member's attributes

PATCH
/v1/lists/{id}/members/{memberId}

Auth: Bearer key scoped to the list's domain.

Replaces the attribute map outright rather than merging it, so a key left out is gone. Address, status and source aren't editable: a different address is a different member, and consent moves through the confirm and unsubscribe doors.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

memberId*string

An opaque, type-prefixed id.

Request Body

application/json
  1. body
attributes*

Replaces the member's attribute map outright. An empty object clears it.

Response Body

The updated membership.

application/json
  1. response
id?string

Opaque id, prefixed lmb_.

list_id?string

The list this membership belongs to.

address?string

Normalized recipient address.

status?string

Whether this address currently receives a batch.

Value in"pending""subscribed""unsubscribed"
source?string

How this membership was created.

Value in"api""import""manual"
source_message_id?|

Set when source is api — the send whose subscribe added this member.

manual_actor?|

Set when source is manual — who added the member.

attributes?

Flat map substituted into {{name}} placeholders on a batch send.

double_opt_in?boolean

The opt-in mode that applied to this membership.

confirmed_at?|

ISO 8601 timestamp, or null.

confirmed_by?|

Which mode confirmed this membership.

Value in"link""import""not_required"null
pending_expires_at?|

A pending membership past this timestamp never receives a batch.

unsubscribed_at?|

ISO 8601 timestamp, or null.

created_at?string

ISO 8601 timestamp.

updated_at?string

ISO 8601 timestamp.

Example Request
curl -X PATCH 'https://pouch.example.com/v1/lists/string/members/string' \  -H 'Content-Type: application/json' \  -d '{  "attributes": {    "property1": "string",    "property2": "string"  }}'
Example Response
{  "id": "string",  "list_id": "string",  "address": "string",  "status": "pending",  "source": "api",  "source_message_id": "string",  "manual_actor": "string",  "attributes": {},  "double_opt_in": true,  "confirmed_at": "string",  "confirmed_by": "link",  "pending_expires_at": "string",  "unsubscribed_at": "string",  "created_at": "string",  "updated_at": "string"}