Skip to main content
PUT
/
api
/
v1
/
dev
/
teams
/
{teamId}
/
customers
/
{customerId}
Update Customer
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": "jsmith@example.com",
  "fullName": "<string>",
  "username": "<string>",
  "discordId": "<string>",
  "metadata": [
    {
      "key": "<string>",
      "value": "<string>",
      "locked": true
    }
  ],
  "address": {
    "street": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>",
    "postalCode": "<string>"
  }
}'
{
  "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"
    },
    "discordAccount": null,
    "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
email
string<email> | null
fullName
string | null
username
string | null
discordId
string | null

Discord user ID (snowflake). When provided, Discord user will be validated and associated with this customer.

metadata
object[]

Key-value metadata pairs

address
object

Response

Customer updated successfully

data
object
required

Response data

result
object
required
I