Hi,
You can get the parentId by accessing https://api.businesscentral.dynamics.com/v1.0/api/v1.0/companies({id})/employees
You will get something like this:
"@odata.etag": "W/\"JzQ0O1BKaXRoT1Ruayt0bVRzMktxaGxMc0ZuNlE2SnJJdXBWblN6Y0JOdDArd1k9MTswMDsn\"",
"id": "7bdba2c4-c65f-45ab-bd0b-4d866407469c",
"number": "PS",
"displayName": "Peter Saddow",
"givenName": "Peter",
"middleName": "",
"surname": "Saddow",
"jobTitle": "Sales Manager",
"phoneNumber": "0678-9012-3456",
"mobilePhone": "1234-5678-9012",
"email": "",
"personalEmail": "ps@cronus-demosite.com",
"employmentDate": "2001-01-01",
"terminationDate": "0001-01-01",
"status": "Active",
"birthDate": "1969-02-12",
"statisticsGroupCode": "",
"lastModifiedDateTime": "0001-01-01T00:00:00Z",
"address": {
"street": "47 Main Street",
"city": "London",
"state": "",
"countryLetterCode": "",
"postalCode": "W1 3AL"
The highlighted id in the above response is your parentId.
Thanks,
Mohamad Vajid