Axonaut icon

Axonaut

Interact with Axonaut API - Complete coverage of all endpoints

Actions133

Company → Upsert

AI-generated

Summary

Upsert a company by creating a new record if no existing company matches the given unique field and value or updating the existing company otherwise.

Inputs

  • Unique Field (required) — Select the unique field to identify the existing company record, either 'Name' or 'Third Party Code'.
  • Unique Value (required) — Specify the value to search for in the selected unique field to find an existing company.
  • Add Fields — Provide additional fields such as Email, Phone, Website, Third Party Code, Address, City, Postal Code, and Country to set on the company record.

Output shape

a single company record object.

The operation first attempts to find an existing company matching the unique field and value. If found, it updates that company with the provided additional fields. If not found, it creates a new company record using the unique field and value plus any additional fields. The returned object includes the company data and an '_operation' property indicating if it was 'created' or 'updated'.

Discussion