---
title: "Insert Or Update Customers"
method: PUT
path: "/Customers/UpsertCustomers"
tags: ["Customers"]
---

# Insert Or Update Customers

`PUT /Customers/UpsertCustomers`

This endpoint allows tenants to insert new customers or update attributes for existing customers in batch.

## Request body

- OptimoveAPIModelsUpsertCustomersRequestPayload
  - `Customers` OptimoveAPIModelsUpsertCustomersPayload[], required
    - `CustomerID` string, required
    - `Attributes` OptimoveAPIModelsCustomerAttributePayload[], nullable
      - `RealFieldName` string, required
      - `Value` string, nullable
  - `CallbackURL` string, nullable

## Response `202`

Accepted

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Server Error

---

[API](https://skmtc.net/optimove/apis/optimove-api.md) · [All operations](https://skmtc.net/optimove/apis/optimove-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/optimove/optimove-api/versions/fc55c5b1bec5/schema)
