Companies
Upsert a company
Create a new company or update an existing one. This endpoint uses an upsert operation, creating a new company if the ID doesn’t exist, or updating the existing company if it does.
POST
The create/update endpoint provides a unified way to manage companies in your system. When you send a request:
- If the company ID doesn’t exist, a new company will be created
- If the company ID exists, the provided attributes will be merged with existing ones
- Existing attributes not included in the request will remain unchanged
- User creation/update operations with embedded company data
- Membership creation/update operations
Request body
string
Unique identifier for the company. We recommend using a consistent prefix (e.g.,
comp_) and matching the ID from your system for easier tracking and management.object
A map of company attributes to create or update. You can include any custom attributes to describe the company. See Attributes for detailed information about attribute types and best practices.