curl --request POST \
--url https://sandbox.finhub.cloud/api/v2.1/customer/organization/{organizationId}/employee \
--header 'Content-Type: application/json' \
--data '
{
"person": {
"fullName": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"middleName": "<string>",
"dateOfBirth": "<string>",
"nationality": "<string>",
"gender": "<string>",
"phoneNumber": "<string>",
"countryCode": "<string>",
"names": [
{
"value": "<string>",
"type": "<string>"
}
],
"contacts": [
{
"type": "<string>",
"value": "<string>",
"isPrimary": true
}
],
"addresses": [
{
"id": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>",
"addressType": "<string>"
}
]
},
"position": "<string>",
"responsibility": "<string>",
"department": "<string>",
"roles": [
"<string>"
],
"organizationRole": "<string>",
"status": "<string>",
"sharePercentage": 123,
"ultimatePercentage": 123,
"groupId": "<string>",
"documentId": "<string>"
}
'Alias for /employees - adds a new employee
curl --request POST \
--url https://sandbox.finhub.cloud/api/v2.1/customer/organization/{organizationId}/employee \
--header 'Content-Type: application/json' \
--data '
{
"person": {
"fullName": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"middleName": "<string>",
"dateOfBirth": "<string>",
"nationality": "<string>",
"gender": "<string>",
"phoneNumber": "<string>",
"countryCode": "<string>",
"names": [
{
"value": "<string>",
"type": "<string>"
}
],
"contacts": [
{
"type": "<string>",
"value": "<string>",
"isPrimary": true
}
],
"addresses": [
{
"id": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>",
"addressType": "<string>"
}
]
},
"position": "<string>",
"responsibility": "<string>",
"department": "<string>",
"roles": [
"<string>"
],
"organizationRole": "<string>",
"status": "<string>",
"sharePercentage": 123,
"ultimatePercentage": 123,
"groupId": "<string>",
"documentId": "<string>"
}
'OK