---
title: "Upsert a customer"
method: PUT
path: "/unstable/customer"
tags: ["Customer"]
---

# Upsert a customer

`PUT /unstable/customer`

## Request

- Base URL: `https://api.authentified.co`
- URL: `https://api.authentified.co/unstable/customer`
- Auth: API key in header `X-Authentified-API-Key`

Upsert a customer

## Request body

- object
  - `id` string, required: The Unique Identifier of the customer in your system
  - `firstName` string: First name of the customer
  - `lastName` string: Last name of the customer
  - `email` string, email: Email address of the customer
  - `phoneNumber` string: Phone number of the customer
  - `createdAt` string, date-time: The date and time when the customer was created in your system
  - `updatedAt` string, date-time: The date and time when the customer was updated in your system

## Response `200`

Customer updated successfully

- object: Customer updated successfully
  - `id` string, required: The Unique Identifier of the customer in your system
  - `firstName` string: First name of the customer
  - `lastName` string: Last name of the customer
  - `email` string, email: Email address of the customer
  - `phoneNumber` string: Phone number of the customer
  - `createdAt` string, date-time: The date and time when the customer was created in your system
  - `updatedAt` string, date-time: The date and time when the customer was updated in your system

## Other responses

- `201`: Customer created successfully
- `400`: Bad Request - Invalid parameters
- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden - API key does not have access to this resource

---

[API](https://skmtc.dev/authentified/apis/authentified-rest-api.md) - [All operations](https://skmtc.dev/authentified/apis/authentified-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/authentified/apis/authentified-rest-api/revisions/1c72a50690bf?raw)
