> ## 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

사용자 프로필 정보를 수정합니다.

### 요청 본문

<ParamField body="firstName" type="string">
  새 이름(1\~50자)입니다.
</ParamField>

<ParamField body="lastName" type="string">
  새 성(1\~50자)입니다.
</ParamField>

<ParamField body="company" type="string">
  새 회사명입니다(최대 100자).
</ParamField>

### 응답

<ResponseField name="success" type="boolean">
  수정 성공 여부입니다.
</ResponseField>

<ResponseField name="message" type="string">
  상태 메시지입니다.
</ResponseField>

<ResponseField name="account" type="object">
  수정된 계정 정보입니다.

  <Expandable title="account 속성">
    <ResponseField name="id" type="string">
      사용자 고유 식별자입니다.
    </ResponseField>

    <ResponseField name="firstName" type="string">
      갱신된 이름입니다.
    </ResponseField>

    <ResponseField name="lastName" type="string">
      갱신된 성입니다.
    </ResponseField>

    <ResponseField name="company" type="string">
      갱신된 회사명입니다.
    </ResponseField>

    <ResponseField name="updatedAt" type="string">
      수정 시각(ISO 8601)입니다.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  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"
    }'
  ```

  ```javascript Node.js theme={null}
  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'
      })
    }
  );
  ```
</RequestExample>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "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"
    }
  }
  ```

  ```json Validation Error (400) theme={null}
  {
    "message": "Validation error: First name must be at least 1 character"
  }
  ```
</ResponseExample>
