編輯會員資料
編輯會員的姓名、Email、生日、電話、地址等
Update a client's customer ID and profile fields (name, email, phone, birthday, address).
Only fields present in the request body are updated; send null to clear a field. If none of the fields are provided, nothing is updated and the request still succeeds.
Conditional validation rules:
Either provide 'clientId' OR both 'platform' and 'platformClientId' to identify the client
customerId, name, email, phone, birthday, address must be a string or null
'birthday' must be a parsable date (e.g. "1990-01-31")
Bearer token for API authentication
The bot ID for the API request
Client identification rules:
- Either provide 'clientId' OR both 'platform' and 'platformClientId'
- Omitted fields are left unchanged; null clears the field
Secret key for API authentication
your_secret_key_hereThe client ID (required if platform + platformClientId not provided)
VolejRejNPlatform type (required if platformClientId provided)
linePossible values: Platform-specific client ID (required if clientId not provided)
U1234567890abcdefCustomer ID in your own system
customer123王小明user@example.com09123456781990-01-31台北市信義區市府路1號Client updated successfully
trueOperation completed successfullyInvalid request parameters
JWT token is invalid or expired
Permission denied or update failed
Resource not found
Rate limit exceeded
Internal server error
PATCH /api/openapi/client?botId=text HTTP/1.1
Host: mantago.cc
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 275
{
"secret": "your_secret_key_here",
"clientId": "VolejRejN",
"platform": "line",
"platformClientId": "U1234567890abcdef",
"customerId": "customer123",
"name": "王小明",
"email": "user@example.com",
"phone": "0912345678",
"birthday": "1990-01-31",
"address": "台北市信義區市府路1號"
}{
"success": true,
"message": "Update client successfully"
}最後更新於