Retrieve the primary contacts of an organisation.
https://api.employmenthero.com/api/v1/organisations/:organisation_id/primary_contactsPath Parameters
The ID of the business
Response Body
The primary contacts the business can use.
Payroll admin email addresses
HR manager email addresses
UUIDs of the employees who are safety contacts
UUIDs of the employees who are superannuation admins
Example
curl -X GET \ "https://api.employmenthero.com/api/v1/organisations/:organisation_id/primary_contacts" \ -H "Authorization: Bearer AUXJ3123xyrj123fdsjkl124aAJKQ"Response
{ "data": { "payroll_admin_emails": [ "payroll@acme.com.au" ], "hr_champion_emails": [ "hr@acme.com.au" ], "worksafe_assignees": [ "3f1c2a4e-9b7d-4e2a-8c61-0d5f7a9b1e42" ], "superannuation_admins": [ "3f1c2a4e-9b7d-4e2a-8c61-0d5f7a9b1e42" ] }}Update the primary contacts of an organisation. Send only the fields you want to change; fields you leave out keep their value. The response holds the full set of primary contacts after the update.
https://api.employmenthero.com/api/v1/organisations/:organisation_id/primary_contactsPath Parameters
The ID of the business
Request Body
Payroll admin email addresses. Each value must be an email
HR manager email addresses. Each value must be an email
UUIDs of the active employees who are safety contacts
UUIDs of the active employees who are superannuation admins
Response Body
The full set of primary contacts after the update.
Payroll admin email addresses
HR manager email addresses
UUIDs of the employees who are safety contacts
UUIDs of the employees who are superannuation admins
Example
curl -X PATCH \ "https://api.employmenthero.com/api/v1/organisations/:organisation_id/primary_contacts" \ -H "Authorization: Bearer AUXJ3123xyrj123fdsjkl124aAJKQ" \ -H "Content-Type: application/json" \ -d '{ "hr_champion_emails": [ "hr@acme.com.au", "people@acme.com.au" ] }'Response
{ "data": { "payroll_admin_emails": [ "payroll@acme.com.au" ], "hr_champion_emails": [ "hr@acme.com.au" ], "worksafe_assignees": [ "3f1c2a4e-9b7d-4e2a-8c61-0d5f7a9b1e42" ], "superannuation_admins": [ "3f1c2a4e-9b7d-4e2a-8c61-0d5f7a9b1e42" ] }}