> For the complete documentation index, see [llms.txt](https://api.senderwiz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.senderwiz.com/customer/subscribers/update-a-subscriber.md).

# Update a Subscriber

### ✏️ Update a Subscriber

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

***

#### 🔹 HTTP Request

```http
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

```php
// UPDATE EXISTING SUBSCRIBER
$response = $endpoint->update('LIST-UNIQUE-ID', 'SUBSCRIBER-UNIQUE-ID', [
    'EMAIL'    => 'alex.renner@demo.com',
    'FNAME'    => 'Alex',
    'LNAME'    => 'Renner Updated'
]);

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

***

#### 📦 Sample JSON Response

```json
{
  "status": "success",
  "data": {
    "record": {
      "subscriber_uid": "a9k7dn56qp91x",
      "email": "alex.renner@demo.com",
      "ip_address": "212.111.104.10",
      "source": "api",
      "date_added": "2025-04-17 14:25:42"
    }
  }
}
```
