PUT
/
v1
/
customers
/
{id}
Update customer
curl --request PUT \
  --url https://api.useaira.com/v1/customers/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "name": "Acme Inc.",
  "customFields": {
    "custom_field_1": "value1",
    "custom_field_2": "value2"
  }
}'
{
  "id": "<string>",
  "externalId": "cust_1234567890abcdef",
  "name": "Acme Inc.",
  "customFields": {
    "custom_field_1": "value1",
    "custom_field_2": "value2"
  }
}

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Path Parameters

id
string
required

The unique identifier of the customer in our system.

Body

application/json

Schema representing a customer.

Response

200
application/json

The request was successfully processed, and the customer has been updated. The response contains the details of the updated customer.