Add Custom Object Relationship
Custom Objects
Add Custom Object Relationship
Links a custom object to a target entity via a relationship field. Use
the fieldRefId from the
Get Configuration
endpoint.
Cardinality behavior:
- one_to_one: Replaces any existing link from this object and any existing link to the target. Each side can have at most one link.
- one_to_many: Replaces any existing link from this object (the “one” side), but the target (the “many” side) can have multiple links.
- many_to_one: Appends the link. The source (the “many” side) can have multiple links, but existing links to the target from other sources on the “one” side are replaced.
- many_to_many: Appends the link. Both sides can have multiple links.
If the exact same link already exists, the operation is idempotent and
returns created: false.
Required permission: company.fmv1_custom_object:update
PUT
Add Custom Object Relationship
Authorizations
API key authentication. Include your API key in the Authorization header.
Path Parameters
Company identifier
Custom object type in snake_case format (e.g., vehicle, building_info)
Custom object identifier
Relationship field reference ID from the configuration endpoint
Target custom object identifier to link or unlink
