addCustomObjectFieldToAsset
Add a Custom Object relationship field to Assets.
Creates a RELATIONSHIP field on Assets that links to a specific custom object type. For example, add a "Vendor" field to assets so each asset can be linked to its vendor.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
entity_type | string | No | Entity type (ASSET, REQUEST, CUSTOM_OBJECT). Set automatically based on endpoint. |
type | string (enum, 18 values) | Yes | The field type. Valid values: SHORT_TEXT, LONG_TEXT, RICH_TEXT, NUMBER, DECIMAL, |
display_name | string | Yes | Human-readable field label (e.g., "Visa Number", "Assigned Agent") |
reference_key | string | No | Machine-readable key. Auto-generated if not provided. |
