ListDataFieldsRequest
| Field | Type | Description |
|---|---|---|
include_archived | bool | |
entity_type | string | Whose data fields to list: "customer" (the default) or "prospect", the fields each prospect keeps of its own. |
Required scope: datafield:read
Use this endpoint to discover data field keys, types, descriptions, options, and archived state before writing customer data fields.
Only customer data fields are listed. Data fields that belong to appointments, work orders, or other customer records are not exposed through the public API yet.
Location definitions use PUBLIC_DATA_FIELD_TYPE_LOCATION. Their configJson
contains an available_fields array selecting from zipcode, house_number,
extension, street, city, country, latitude, longitude, and
full_address.
Company definitions use PUBLIC_DATA_FIELD_TYPE_COMPANY. Their configJson
selects from company_name, registration_number, and vat_number. Company
values do not contain addresses; use a location data field for those.
Currency definitions use PUBLIC_DATA_FIELD_TYPE_CURRENCY. Values use the
string contract and contain an integer number of cents, for example "25000"
for EUR 250.00.
Colleague definitions use PUBLIC_DATA_FIELD_TYPE_MEMBER. Values use the
string contract and contain the id of a member of the workspace; writing an id
that is not an active member of the workspace is refused.
POST /public-api/publicapi.v1.DataField/ListDataFields Lists customer data field definitions for the workspace.
| Field | Type | Description |
|---|---|---|
include_archived | bool | |
entity_type | string | Whose data fields to list: "customer" (the default) or "prospect", the fields each prospect keeps of its own. |
| Field | Type |
|---|---|
data_fields | repeated DataField |
{ "includeArchived": false}{ "dataFields": [ { "id": "9d8cb34e-1c15-418c-9fdb-cfc5293df688", "name": "external_status", "fieldType": "PUBLIC_DATA_FIELD_TYPE_TEXT", "description": "External system status" } ]}