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

# Kontoprofil aktualisieren

> Dieser Endpunkt aktualisiert das Profil des authentifizierten Nutzers.

## PUT /accounts/profile

Mit diesem Endpunkt kann ein Nutzer seine Profildaten aktualisieren.

### Anfragetext

<ParamField body="firstName" type="string">
  Neuer Vorname (1–50 Zeichen).
</ParamField>

<ParamField body="lastName" type="string">
  Neuer Nachname (1–50 Zeichen).
</ParamField>

<ParamField body="company" type="string">
  Neuer Firmenname (max. 100 Zeichen).
</ParamField>

### Antwort

<ResponseField name="success" type="boolean">
  Ob die Aktualisierung erfolgreich war.
</ResponseField>

<ResponseField name="message" type="string">
  Statusmeldung.
</ResponseField>

<ResponseField name="account" type="object">
  Aktualisierte Kontodaten.

  <Expandable title="Eigenschaften von account">
    <ResponseField name="id" type="string">
      Eindeutige Kennung des Nutzers.
    </ResponseField>

    <ResponseField name="firstName" type="string">
      Aktualisierter Vorname.
    </ResponseField>

    <ResponseField name="lastName" type="string">
      Aktualisierter Nachname.
    </ResponseField>

    <ResponseField name="company" type="string">
      Aktualisierter Firmenname.
    </ResponseField>

    <ResponseField name="updatedAt" type="string">
      ISO-8601-Zeitstempel der Aktualisierung.
    </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>
