PUT
/
api
/
v1
/
dev
/
teams
/
{teamId}
/
customers
/
{customerId}
curl --request PUT \
--url https://app.lukittu.com/api/v1/dev/teams/{teamId}/customers/{customerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "newemail@example.com",
"fullName": "John Updated Doe",
"username": "johnupdated",
"metadata": [],
"address": {
"street": "456 Updated St",
"city": "New City",
"state": "NY",
"country": "US",
"postalCode": "54321"
}
}'
{
"data": {
"id": "789e0123-e89b-12d3-a456-426614174222",
"email": "newemail@example.com",
"fullName": "John Updated Doe",
"username": "johnupdated",
"metadata": [
{
"key": "tier",
"value": "premium",
"locked": false
}
],
"address": {
"street": "456 Updated St",
"city": "New City",
"state": "NY",
"country": "US",
"postalCode": "54321"
},
"teamId": "123e4567-e89b-12d3-a456-426614174000",
"createdByUserId": "456e7890-e89b-12d3-a456-426614174111",
"createdAt": "2023-09-15T14:30:00Z",
"updatedAt": "2023-09-15T14:35:00Z"
},
"result": {
"timestamp": "2023-09-15T14:35:00Z",
"valid": true,
"details": "Customer updated"
}
}

Authorizations

Authorization
string
header
required

API key authentication for development endpoints.

You can create API keys in your team's settings on the Lukittu dashboard. Include the API key in the Authorization header as: Bearer YOUR_API_KEY

Example:

Authorization: Bearer lukittu_api_key_abc123def456...

Path Parameters

teamId
string<uuid>
required

Your team's UUID. You can find this value in your team's settings on the Lukittu dashboard.

customerId
string<uuid>
required

The unique identifier (UUID v4) of the customer.

Body

application/json

Response

200
application/json

Customer updated successfully

The response is of type object.