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
The user’s new first name.
The user’s new last name.
The user’s new company name.
Response
An object containing the user’s updated profile information.
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"
]
}