Axonaut icon

Axonaut

Interact with Axonaut API - Complete coverage of all endpoints

Actions133

Employee (Contact) → Upsert

AI-generated

Summary

Create or update an employee in Axonaut based on their unique email address.

Inputs

  • Email (required) — The unique email address used to search for the employee to upsert.
  • Add Fields — Optional employee details to set or update, including first name, last name, email, phone, position, and department.
  • Company ID (required) — The company ID to which the employee belongs (implicit required parameter when creating a new employee on upsert).

Output shape

A single record representing the created or updated employee with their details and an internal _operation field indicating 'created' or 'updated'.

If an employee with the given email exists, the node updates that employee and sets _operation to 'updated'. Otherwise, it creates a new employee associated with the specified company and sets _operation to 'created'. The operation requires the unique email to find or create the employee. Errors will be thrown if the email is missing or if the API call fails.

Discussion