Skip to main content

PUT /accounts/profile

This endpoint allows a user to update their profile information, such as their name and company. This is an authenticated endpoint.

Request Body

firstName
string
The user’s new first name.
lastName
string
The user’s new last name.
company
string
The user’s new company name.

Response

profile
object
An object containing the user’s updated profile information.
firstName
string
lastName
string
company
string
updated
array
A list of the fields that were updated.
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": "UpdatedCo"
      }'
{
  "profile": {
    "firstName": "Jane",
    "lastName": "Doe",
    "company": "UpdatedCo"
  },
  "updated": [
    "firstName",
    "company"
  ]
}