Update a Subscriber

Update the details of an existing subscriber in a specific list by using their unique subscriber ID. Useful for correcting or modifying stored subscriber data.

✏️ Update a Subscriber

Modify subscriber details such as email, first name, or last name using their unique identifiers.


🔹 HTTP Request

PUT API-URL/lists/LIST-UNIQUE-ID/subscribers/SUBSCRIBER-UNIQUE-ID

🔸 URL Segments

Parameter
Required
Description

LIST-UNIQUE-ID

Yes

List unique identifier

SUBSCRIBER-UNIQUE-ID

Yes

Subscriber unique identifier


🔧 PUT Parameters

Parameter
Type
Required
Description

data

array

Yes

Array with the custom fields {name => value} to be updated.


🔐 Authorization Header

X-API-KEY: your-api-key-here

💻 PHP Example

// UPDATE EXISTING SUBSCRIBER
$response = $endpoint->update('LIST-UNIQUE-ID', 'SUBSCRIBER-UNIQUE-ID', [
    'EMAIL'    => '[email protected]',
    'FNAME'    => 'Alex',
    'LNAME'    => 'Renner Updated'
]);

// DISPLAY RESPONSE
echo '<hr />';
echo '<pre>';
print_r($response->body);
echo '</pre>';

📦 Sample JSON Response

{
  "status": "success",
  "data": {
    "record": {
      "subscriber_uid": "a9k7dn56qp91x",
      "email": "[email protected]",
      "ip_address": "212.111.104.10",
      "source": "api",
      "date_added": "2025-04-17 14:25:42"
    }
  }
}

Last updated