Edit employee.
Expect error codes:
- INVALID_EMPLOYEE - when invalid employee id provided
- INVALID_FIRST_NAME - when first name is not provided or is invalid
- INVALID_LAST_NAME - when last name is not provided or is invalid
- INVALID_EMAIL - when email is not provided or is invalid
- INVALID_WORKING_WEEK - when provided working week is invalid
- INVALID_ACCEPTANCE_FLOW - when provided acceptance flow is invalid
- INVALID_HOLIDAYS_CALENDAR - when provided holidays calendar is invalid
- INVALID_SEX - when provided sex is invalid
- INVALID_MARTIAL_STATUS - when provided marital status is invalid
- INVALID_TEAM - when one of provided teams is invalid
- INVALID_POSITION - when one of provided positions is invalid
- INVALID_CONTRACT_TYPE - when contract type is invalid
- INVALID_PERSONAL_EMAIL - when personal email is invalid
- INVALID_DIRECT_MANAGER - when invalid direct manager is provided
Security
basicAuth
Emergency contact relationship to update
Example:"Contact relationship"
The youngest child birth date to update in ISO format
Example:"2017-02-20"
- https://awesome-company.calamari.io/apihttps://awesome-company.calamari.io/api/employees/v1/edit
curl -i -X POST \
-u '<username>:<password>' \
https://awesome-company.calamari.io/api/employees/v1/edit \
-H 'Content-Type: application/json' \
-d '{
"employee": "john.white@mycompany.com",
"firstName": "John",
"lastName": "Williams",
"email": "john.williams@domain.com",
"workingWeek": "Working week name",
"approvalFlow": "Main Approval Flow",
"position": "Developer",
"teams": [
"Primary team"
],
"holidaysCalendar": "Primary calendar",
"sex": "string",
"maritalStatus": "string",
"admin": true,
"contractType": "Full time",
"externalNumber": "A27D",
"directManager": "mark.smith@domain.com",
"birthDate": "2017-02-20",
"hireDate": "2017-02-20",
"businessPhone": "982027621",
"homePhone": "982027621",
"personalEmail": "john.white@mycompany.com",
"addressStreet": "New Street",
"addressNumber": "2/12",
"addressCity": "Warsaw",
"addressPostalCode": "28-283",
"addressProvinceState": "Main province",
"addressCountry": "Poland",
"emergencyContactName": "Contact name",
"emergencyContactRelationship": "Contact relationship",
"emergencyContactPhone": "928196340",
"probationEndDate": "2017-02-20",
"plannedFiring": "2017-02-20",
"seniorityBeforeHireYears": 0,
"seniorityBeforeHireMonths": 0,
"childrenCount": 0,
"youngestChildBirthDate": "2017-02-20",
"customNote": "Custom note about employee"
}'