Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update Client Information

Update client's name, email ,phone birthday or address

Update client profile

patch

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")

Authorizations
AuthorizationstringRequired

Bearer token for API authentication

Query parameters
botIdstringRequired

The bot ID for the API request

Body

Client identification rules:

  • Either provide 'clientId' OR both 'platform' and 'platformClientId'
  • Omitted fields are left unchanged; null clears the field
secretstringRequired

Secret key for API authentication

Example: your_secret_key_here
clientIdstringOptional

The client ID (required if platform + platformClientId not provided)

Example: VolejRejN
platformstring · enumOptional

Platform type (required if platformClientId provided)

Example: linePossible values:
platformClientIdstringOptional

Platform-specific client ID (required if clientId not provided)

Example: U1234567890abcdef
customerIdstring · nullableOptional

Customer ID in your own system

Example: customer123
namestring · nullableOptionalExample: 王小明
emailstring · nullableOptionalExample: user@example.com
phonestring · nullableOptionalExample: 0912345678
birthdaystring · date · nullableOptionalExample: 1990-01-31
addressstring · nullableOptionalExample: 台北市信義區市府路1號
Responses
200

Client updated successfully

application/json
successbooleanRequiredExample: true
messagestringRequiredExample: Operation completed successfully
patch/openapi/client
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"
}

Last updated