---
title: "POST /api/v1/document/document-fields/{uid}/pre_delete/"
method: POST
path: "/api/v1/document/document-fields/{uid}/pre_delete/"
tags: ["document", "v1"]
---

# POST /api/v1/document/document-fields/{uid}/pre_delete/

`POST /api/v1/document/document-fields/{uid}/pre_delete/`

Get info about related objects for ready-to-delete document type.

## Path parameters

- `uid` string, required

## Request body

- DocumentFieldDetail
  - `uid` string, uuid
  - `document_type` string, required
  - `document_type__title` string
  - `code` string, required — Field codes must be lowercase, should start with a Latin letter, and contain only Latin letters, digits, underscores. Field codes must be unique to every Document Type.
  - `long_code` string
  - `title` string, required
  - `description` string, nullable
  - `type` 'address' | 'choice' | 'company' | 'date' | 'date_recurring' | 'datetime' | 'duration' | 'float' | 'geography' | 'int' | 'linked_documents' | 'money' | 'multi_choice' | 'percent' | 'person' | 'ratio' | 'related_info' | 'string' | 'string_no_word_wrap' | 'text'
  - `text_unit_type` 'sentence' | 'paragraph' | 'section'
  - `value_detection_strategy` 'disabled' | 'use_regexps_only' | 'use_formula_only' | 'regexp_table' | 'text_based_ml_only' | 'fields_based_ml_only' | 'fields_based_prob_ml_only' | 'field_based_regexps' | 'mlflow_model'
  - `classifier_init_script` string, nullable
  - `formula` string, nullable
  - `convert_decimals_to_floats_in_formula_args` boolean — Floating point field values are represented in Python Decimal type to avoid rounding problems in machine numbers representations. Use this checkbox for converting them to Python float type before calculating the formula. Float: 0.1 + 0.2 = 0.30000000000000004. Decimal: 0.1 + 0.2 = 0.3.
  - `value_regexp` string, nullable — This regular expression is run on the sentence found by a Field Detector and extracts a specific string value from a Text Unit. If the regular expression returns multiple matching groups, then the first matching group will be used by the Field. This is only applicable to String Fields.
  - `depends_on_fields` string[]
  - `value_detection_strategy_name` string
  - `confidence` 'High' | 'Medium' | 'Low', nullable
  - `requires_text_annotations` boolean
  - `read_only` boolean
  - `category` string
  - `family` integer, nullable
  - `default_value` object, nullable — If populated, the Default Value will be displayed for this Field if no other value is found by the chosen Value Detection Strategy. Leave this form blank to have the Field Value remain empty by default. Please wrap entries with quotes, example: “landlord”. This is only applicable to Choice and Multi Choice Fields.
  - `choices` string[]
  - `allow_values_not_specified_in_choices` boolean
  - `metadata` object, nullable
  - `training_finished` boolean
  - `dirty` boolean
  - `order` integer
  - `trained_after_documents_number` integer
  - `hidden_always` boolean
  - `hide_until_python` string, nullable
  - `hide_until_js` string, nullable
  - `is_value_detection_strategy_disabled` boolean
  - `display_yes_no` boolean — Checking this box will display “Yes” if Related Info text is found, and display “No” if no text is found.
  - `value_aware` boolean
  - `created_by__name` string
  - `modified_by__name` string
  - `created_date` string, date-time
  - `modified_date` string, date-time
  - `vectorizer_stop_words` string, nullable — Stop words for vectorizers user in field-based ML field detection. These stop words are excluded from going into the feature vector part build based on this field. In addition to these words the standard sklearn "english" word list is used. Format: each word on new line
  - `unsure_choice_value` string, nullable — Makes sense for machine learning strategies with "Unsure" category. The strategy will return this value if probabilities of all other categories appear lower than the specified threshold.
  - `unsure_thresholds_by_value` object, nullable — Makes sense for machine learning strategies with "Unsure" category. The strategy will return concrete result (one of choice values) only if the probability of the detected value is greater than this threshold. Otherwise the strategy returns None or the choice value specified in "Unsure choice value" field. Format: { "value1": 0.9, "value2": 0.5, ...}. Default: 0.9
  - `mlflow_model_uri` string, nullable — MLFlow model URI understandable by the MLFlow artifact downloading routines.
  - `mlflow_detect_on_document_level` boolean — If true - whole document text will be sent to the MLFlow model and the field value will be returned for the whole text with no annotations. If false - each text unit will be sent separately.

## Response `200`

- object

---

[API](https://skmtc.net/lexpredict/apis/contraxsuite-api.md) · [All operations](https://skmtc.net/lexpredict/apis/contraxsuite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lexpredict/contraxsuite-api/versions/3429f921b4cb/schema)
