跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt

Use this file to discover all available pages before exploring further.

PUT /accounts/profile

更新用户的资料信息。

请求体

firstName
string
新名字(1–50 个字符)。
lastName
string
新姓氏(1–50 个字符)。
company
string
新公司名(最多 100 个字符)。

响应

success
boolean
更新是否成功。
message
string
状态说明。
account
object
更新后的账户详情。
curl -X PUT https://api.llmgenerator.com/api/v1/accounts/profile \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "Jane",
    "company": "New Company Inc"
  }'
{
  "success": true,
  "message": "Profile updated successfully",
  "account": {
    "id": "user_abc123def456",
    "firstName": "Jane",
    "lastName": "Doe",
    "company": "New Company Inc",
    "updatedAt": "2026-01-27T10:00:00.000Z"
  }
}