PUT /accounts/profile
更新用户的资料信息。请求体
string
新名字(1–50 个字符)。
string
新姓氏(1–50 个字符)。
string
新公司名(最多 100 个字符)。
响应
boolean
更新是否成功。
string
状态说明。
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"
}'
const response = await fetch(
'https://api.llmgenerator.com/api/v1/accounts/profile',
{
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
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"
}
}
{
"message": "Validation error: First name must be at least 1 character"
}