# boolean_smtp_connection_updated

> Fires after a connection has been updated through the REST API.

Action · Tier A · Since 1.0.0



## Signature

```php
add_action( 'boolean_smtp_connection_updated', $callback, 10, 1 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$payload` | `array<string, mixed>` |  |
| &nbsp;&nbsp;`id` | `int` | Id of the updated connection. |
| &nbsp;&nbsp;`data` | `array<string, mixed>` | The connection's full record after the update. |
| &nbsp;&nbsp;`timestamp` | `int` | Unix timestamp of the update. |

## Fires in

- [app/Http/Controllers/ConnectionController.php:261](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Http/Controllers/ConnectionController.php#L261) — `BooleanSmtp\Http\Controllers\ConnectionController::update()`

## Example

```php
add_action( 'boolean_smtp_connection_updated', function ( array $payload ) {
    // React to the event.
}, 10, 1 );
```
