> ## Documentation Index
> Fetch the complete documentation index at: https://dev.smile.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Customer updated

export const scope_0 = "event:write"

Send this event any time a customer is created or updated in the external system. All [customer properties](/guides/deprecated/custom-platform/custom-backend-int/custom-customer-events/custom-customer-object) should be filled in when sending this type of request.

<Callout icon="key" iconType="regular">
  This endpoint requires the **{scope_0}** scope.
</Callout>

<Panel>
  <RequestExample>
    ```shell Update a customer theme={null}
    curl --request POST \
      --url https://api.smile.io/v1/events/ \
      --header 'Content-Type: application/json' \
      --header 'Authorization: Bearer {token}' \
      --data '
    {
      "event": {
        "topic": "customer/updated",
        "data": {
          "external_id": "1",
          "first_name": "Wayne",
          "last_name": "Rooney",
          "email": "wrooney@example.com",
          "external_created_at": "2023-11-19T21:19:30.559Z",
          "external_updated_at": "2023-11-20T21:09:22.509Z"
        }
      }
    }'
    ```
  </RequestExample>

  <ResponseExample>
    ```json 202 theme={null}
    ```
  </ResponseExample>
</Panel>
