Get one custom field template with its fields.
GET/api/v1/custom-field-templates/{custom_field_template_id}custom_fields:read
The fields are the field definitions in their saved order.
| Scope | custom_fields:read |
| Asynchronous | No |
| MCP tool | get_custom_field_template |
| Portal permissions | view_custom_field_templates |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
custom_field_template_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json CustomFieldTemplate |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
| Code | Status |
|---|---|
invalid_version | 400 |
token_expired | 401 |
unauthenticated | 401 |
forbidden | 403 |
insufficient_scope | 403 |
token_owner_inactive | 403 |
not_found | 404 |
method_not_allowed | 405 |
not_acceptable | 406 |
wrong_region | 421 |
validation_failed | 422 |
internal_error | 500 |
tenant_unavailable | 503 |
unavailable | 503 |
timeout | 504 |
Schemas
CalculatedFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
lookup_list | ListReference or null | Required | |
value_type | string or null | Required |
ComboFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
choices_list | ListReference | Required |
CurrencyFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
currency_symbol | string or null | Required | A display-only prefix for the amount (config.currency_symbol); null for none. |
scale | integer or null | Required | |
validation | v1NumericValidation | Required |
CustomDataLookupFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
source | v1CustomDataSource | Required |
CustomFieldReferenceFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
child_custom_field_template_id | string | Required |
CustomFieldTemplate
| Field | Type | Required | Description |
|---|---|---|---|
allows_multiple | boolean | Required | |
auto_extracts_on_upload | boolean | Required | A document uploaded with this template's document types is extracted automatically. |
column_name_renderer | VirtualViewReference or null | Required | A saved query that renders the template's column names (null for none). |
comments | string or null | Required | |
custom_field_template_group_id | string or null | Required | |
custom_field_template_id | string | Required | |
custom_fields | array of object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object or object | Required | |
display_mode | integer | Required | ≥ -2147483648; ≤ 2147483647 |
document_type_ids | array of string | Required | |
graph_config | object or null | Required | The template's graph settings (format template_graph_config: the Portal's graph ontology settings for the template, as it stores them); null when none. A write is judged by the Portal's own check. |
is_active | boolean | Required | |
limit_view | VirtualViewReference or null | Required | A register's limit query: the saved query that lists which of the register's rows a document may link (null for none). |
matches_shared_rows | boolean | Required | On a project register, a document's linking also offers the register's shared rows (rows with no project). |
processes_as_image | boolean | Required | AI extraction treats each page as an image. |
processes_pages_independently | boolean | Required | AI extraction reads each page of a document on its own. |
project_scope | string or null | Required | project: the rows of a register belong to the project of the document they are created from; null: the register is shared by every project. Registers only. |
template_name | string or null | Required | |
template_type | string | Required | Grid, GridLink (a register) or Filter. |
uses_only_extracted_tables | boolean | Required | AI extraction uses only the tables it found in the document. |
view_name | string or null | Required | The view the template is read through instead of its own storage (an advanced option; null for none). |
DateFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
validation | v1DateValidation | Required |
DocumentLinkFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
settings | object or null | Required |
EmptyFieldVariant
GridLinkReferenceFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
join | v1GridJoin | Required | |
target_custom_field_template_id | string | Required |
LinkedColumnFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
allows_multiple | boolean | Required | |
edit_mode | string | Required | |
extraction | v1ExtractionSettings | Required | |
graph | object or null | Required | |
limit_view | v1LimitView or null | Required | |
relation_code | string or null | Required | |
target_custom_field_template_id | string | Required | |
uses_fuzzy_sort | boolean | Required |
ListReference
| Field | Type | Required | Description |
|---|---|---|---|
lookup_list_id | string or null | Required | |
name | string | Required |
LookupFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
match | v1LookupMatch | Required | |
source_custom_field_template_id | string | Required | |
source_key_custom_field_id | string | Required | |
source_value_custom_field_id | string | Required |
LookupListFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
lookup_list | ListReference | Required |
LookupListMultiFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
lookup_list | ListReference | Required | |
validation | v1SelectionValidation | Required |
MatrixCalculationFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
axes | v1MatrixAxes | Required | |
rows | array of v1MatrixRowDefinition | Required |
MultiValueFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
choices_list | ListReference | Required | |
validation | v1SelectionValidation | Required |
NumericFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
scale | integer or null | Required | |
validation | v1NumericValidation | Required |
SequentialRefFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
sequence_template | string or null | Required |
TextFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
validation | v1TextValidation | Required |
VirtualFieldLookupFieldVariant
| Field | Type | Required | Description |
|---|---|---|---|
virtual_custom_field_id | string | Required |
VirtualViewReference
| Field | Type | Required | Description |
|---|---|---|---|
virtual_view_id | string | Required |
v1CustomDataSQL
| Field | Type | Required | Description |
|---|---|---|---|
sql | string or null | Required |
v1CustomDataSource
| Field | Type | Required | Description |
|---|---|---|---|
lookup_list | ListReference or null | Required | For lookup_list: the list by ID and name. lookup_list_id is null for a legacy list, which is kept by its name. |
sql | v1CustomDataSQL or null | Required | |
type | string | Required | lookup_list or sql. |
v1CustomFieldRef
| Field | Type | Required | Description |
|---|---|---|---|
custom_field_id | string | Required |
v1DateValidation
| Field | Type | Required | Description |
|---|---|---|---|
max_date | string or null | Required | |
max_date_offset_days | integer or null | Required | |
message | string or null | Required | The message shown in place of the default when a rule fails. |
min_date | string or null | Required | |
min_date_offset_days | integer or null | Required | |
no_future | boolean or null | Required | |
no_past | boolean or null | Required | |
required | boolean or null | Required | Reject an empty or blank value (a validation rule, apart from is_required). |
v1DocumentFieldRef
| Field | Type | Required | Description |
|---|---|---|---|
document_field_id | string | Required |
v1ExtractionSettings
| Field | Type | Required | Description |
|---|---|---|---|
is_enabled | boolean | Required | |
prompt | string | Required | |
runs_on_extraction | boolean | Required |
v1FieldTextLimit
| Field | Type | Required | Description |
|---|---|---|---|
encoding | string | Required | |
max_length | integer | Required | ≥ -2147483648; ≤ 2147483647 |
unit | string | Required |
v1GridJoin
| Field | Type | Required | Description |
|---|---|---|---|
columns | object or null | Required | |
type | string | Required |
v1GridJoinPair
| Field | Type | Required | Description |
|---|---|---|---|
source | v1CustomFieldRef or null | Required | |
target | v1CustomFieldRef or null | Required |
v1LimitView
| Field | Type | Required | Description |
|---|---|---|---|
virtual_view_id | string | Required |
v1LookupMatch
| Field | Type | Required | Description |
|---|---|---|---|
custom_field | v1CustomFieldRef or null | Required | |
document_field | v1DocumentFieldRef or null | Required | |
type | string | Required |
v1MatrixAxes
| Field | Type | Required | Description |
|---|---|---|---|
axis_a | v1CustomFieldRef | Required | |
axis_b | v1CustomFieldRef | Required |
v1MatrixRowDefinition
| Field | Type | Required | Description |
|---|---|---|---|
a_condition | string | Required | |
a_operator | string | Required | |
b_condition | string | Required | |
b_operator | string | Required | |
colour | string | Required | |
value | string | Required |
v1NumericValidation
| Field | Type | Required | Description |
|---|---|---|---|
allow_negative | boolean or null | Required | |
allow_zero | boolean or null | Required | |
decimal_places | integer or null | Required | |
integer_only | boolean or null | Required | |
max | string or null | Required | |
message | string or null | Required | The message shown in place of the default when a rule fails. |
min | string or null | Required | |
required | boolean or null | Required | Reject an empty or blank value (a validation rule, apart from is_required). |
step | string or null | Required |
v1Refetch
| Field | Type | Required | Description |
|---|---|---|---|
mode | string | Required | |
on_custom_field_ids | array of v1CustomFieldRef | Required |
v1SelectionValidation
| Field | Type | Required | Description |
|---|---|---|---|
max_selections | integer or null | Required | |
message | string or null | Required | The message shown in place of the default when a rule fails. |
min_selections | integer or null | Required | |
required | boolean or null | Required | Reject an empty or blank value (a validation rule, apart from is_required). |
v1TextValidation
| Field | Type | Required | Description |
|---|---|---|---|
max_length | integer or null | Required | |
message | string or null | Required | The message shown in place of the default when a rule fails. |
min_length | integer or null | Required | |
pattern | string or null | Required | |
pattern_flags | string or null | Required | |
pattern_preset | string or null | Required | |
required | boolean or null | Required | Reject an empty or blank value (a validation rule, apart from is_required). |
trim | boolean or null | Required |