Update employee profile data
Partially updates employee profile information. All fields are optional - only provided fields will be updated.
What can be updated:
- Personal information (name, email, phone, birth date)
- Professional details (title, degree)
- Complete address information
- Avatar image (upload file first via POST /api/public/workspace/upload, then use file ID)
- Digital signature (upload file first via POST /api/public/workspace/upload, then use file ID)
Note: This endpoint is only available for employee accounts. To upload files (avatar or signature), first call POST /api/public/workspace/upload to upload the file and get a file ID, then use that ID in the avatarId or signatureFileId field.
POST
/account/employee/dataAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredRequest body
requiredapplication/jsonaddressCitystringaddressCountrystringISO 3166-1 alpha-2 country code (2 uppercase letters)
addressHouseNumberstringaddressStreetstringaddressZipstringavatarIdobject | nullFile ID for avatar (upload via POST /api/public/workspace/upload first). Set to null to remove avatar.
birthDatestringISO8601 date string
degreestringemailstringfirstNamestringlastNamestringphonestringsignatureFileIdstringFile ID for signature (upload via POST /api/public/workspace/upload first)
titlestringResponses
200
successbooleanrequiredOperation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404Employee not found
Request
curl -X POST "https://leadtime.app/api/public/account/employee/data" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"addressCity": "string",
"addressCountry": "US",
"addressHouseNumber": "string",
"addressStreet": "string",
"addressZip": "string",
"avatarId": {},
"birthDate": "string",
"degree": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"phone": "string",
"signatureFileId": "string",
"title": "string"
}'const response = await fetch("https://leadtime.app/api/public/account/employee/data", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"addressCity": "string",
"addressCountry": "US",
"addressHouseNumber": "string",
"addressStreet": "string",
"addressZip": "string",
"avatarId": {},
"birthDate": "string",
"degree": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"phone": "string",
"signatureFileId": "string",
"title": "string"
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/account/employee/data",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"addressCity": "string",
"addressCountry": "US",
"addressHouseNumber": "string",
"addressStreet": "string",
"addressZip": "string",
"avatarId": {},
"birthDate": "string",
"degree": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"phone": "string",
"signatureFileId": "string",
"title": "string"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
Employee not found