Custom Fields Release
by Romina Do RioNew Custom Fields Endpoints in Public API V2
1. Get a Single Contact Custom Field Value
Endpoint: GET /api/v2/contacts/{contactId}/custom-fields/{customFieldId}
Purpose: Retrieve the value(s) of a specific custom field for a given contact by providing the contact ID and custom field ID.
Capabilities:
- Provides access to data in specified custom field for a specified contact.
- Supports various custom field types (text, numbers, dates, selection, boolean).
2. Set a Single Contact Custom Field Value
Endpoint: PUT /api/v2/contacts/{contactId}/custom-fields/{customFieldId}/
Purpose: Set or update the value(s) of a specific custom field associated with a contact.
Capabilities:
- Creates or updates data for a specified custom field for a specified contact.
- Additionally ensures the custom field exists, is active, and the value conforms to the defined format.
- Supports various custom field types (text, numbers, dates, selection, boolean).
3. Get All Contact Custom Fields
Endpoint: GET /api/v2/contacts/{contactId}/custom-fields
Purpose: Retrieve a list of all custom fields associated with a specific contact by providing the contact ID.
Capabilities:
- Provides access to data in all active custom fields for a specified contact.
- Supports various custom field types (text, numbers, dates, selection, boolean).
4. Get a Single Job Custom Field Value
Endpoint**: GET /api/v2/jobs/{jobId}/custom-fields/{customFieldId}
Purpose: Retrieve the value(s) of a specific custom field associated with a job by providing the job ID and custom field ID.
Capabilities:
- Provides access to data in specified custom field for a specified job.
- Supports various custom field types (text, numbers, dates, selection, boolean)
5. Set a Single Job Custom Field Value
Endpoint: PUT /api/v2/jobs/{jobId}/custom-fields/{customFieldId}/
Purpose: Set or update the value(s) of a specific custom field associated with a job.
Capabilities:
- Creates or updates data for a specified custom field for a specified job.
- Additionally ensures the custom field exists, is active, and the value conforms to the defined format.
- Supports various custom field types (text, numbers, dates, selection, boolean)
6. Get All Job Custom Fields
Endpoint: GET /api/v2/jobs/{jobId}/custom-fields
Purpose: Retrieve a list of all custom fields associated with a specific job by providing the job ID.
Capabilities:
- Provides access to data in all active custom fields for a specified job.
- Supports various custom field types (text, numbers, dates, selection, boolean)
7. Get Custom Fields Definitions
Endpoint: GET /api/v2/company-settings/custom-fields/
Purpose: Retrieve all active custom field definitions and their associated field options for a company.
Capabilities:
- Provides access to all active custom field definitions and their associated options within a location.
- Supports filtering by AccuLynx object type (e.g., jobs, contacts) and includes pagination for large datasets.
New Webhooks for Custom Fields
1. Contact Custom Field Status Changed
Webhook Name: contact.custom-field.status_changed
Purpose: Notifies subscribers whenever the status of a custom field associated with a contact changes.
Capabilities:
- Provides real-time updates when the status of a contact custom field changes (e.g., from active to inactive), eliminating the need for manual monitoring and enabling immediate downstream actions.
- Includes information such as the custom field ID, field label, new status, and the user who made the modification
2. Contact Custom Field Value Updated
Webhook Name: contact.custom-field.value_changed
Purpose: Notifies subscribers whenever a custom field value for a contact is updated.
Capabilities:
- Provides real-time updates when a contact custom field is populated or its value changes, enabling automated workflows and downstream actions based on those updates.
- Includes detailed information such as the contact ID, custom field ID, updated value(s), the user who made the modification, and the timestamp of the change.
3. Job Custom Field Status Changed
Webhook Name: job.custom-field.status_changed
Purpose: Notifies subscribers whenever the status of a custom field associated with a job changes.
Capabilities:
- Provides real-time updates when the status of a job custom field changes (e.g., from active to inactive), eliminating the need for manual monitoring and enabling immediate downstream actions.
- Includes detailed information such as the custom field ID, label, new status, and the user who made the modification.
4. Job Custom Field Value Updated
Webhook Name: job.custom-field.value_changed
Purpose: Notifies subscribers whenever a custom field value for a job is updated.
Capabilities:
- Provides real-time updates when a job custom field is populated or its value changes, enabling automated workflows and downstream actions based on those updates.
- Includes detailed information such as the contact ID, custom field ID, updated value(s), the user who made the modification, and the timestamp of the change
