Skip to content
use-forever Docs
Esc
navigateopen⌘Jpreview

Update customer

Updates one owned customer.

PATCH/v1/customers/{customerId}
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
customerIdstringrequired
Customer identifier.
Request body
requiredapplication/json
namestring
min length 1 · max length 120
phonestring
matches ^\+?[0-9()\s-]{7,20}$
channelsstring[]
min items 1
Responses
200Customer updated successfully.
idstringrequired
namestringrequired
min length 1 · max length 120
phonestringrequired
matches ^\+?[0-9()\s-]{7,20}$
channelsstring[]required
min items 1
404Customer not found.
codestringrequired
messagestringrequired
Request
curl -X PATCH "https://api.hackathon.space/v1/customers/string" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "phone": "string",
  "channels": [
    "telegram"
  ]
}'
Response
{
  "id": "cus_123",
  "name": "Jane Doe",
  "phone": "+60123456789",
  "channels": [
    "telegram",
    "twilio-sms"
  ]
}