PUT /api/v1/document/document-fields/{uid}/
Changed onUpdate Document Field
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
A UUID string identifying this document field.
Request body
Example request
{
"classifier_init_script": "classifier_init_script",
"vectorizer_stop_words": "vectorizer_stop_words",
"metadata": "{}",
"code": "code",
"allow_values_not_specified_in_choices": true,
"description": "description",
"long_code": "long_code",
"title": "title",
"type": "address",
"value_regexp": "value_regexp",
"trained_after_documents_number": 1280358509,
"unsure_choice_value": "unsure_choice_value",
"read_only": true,
"depends_on_fields": [
"depends_on_fields",
"depends_on_fields"
],
"requires_text_annotations": true,
"hide_until_python": "hide_until_python",
"document_type": "document_type",
"order": 4803,
"convert_decimals_to_floats_in_formula_args": true,
"dirty": true,
"confidence": "High",
"hide_until_js": "hide_until_js",
"default_value": "{}",
"unsure_thresholds_by_value": "{}",
"warning_message": "warning_message",
"text_unit_type": "sentence",
"mlflow_model_uri": "mlflow_model_uri",
"display_yes_no": true,
"training_finished": true,
"mlflow_detect_on_document_level": true,
"formula": "formula",
"value_detection_strategy": "disabled",
"hidden_always": true,
"category": 0,
"family": 6,
"choices": "choices"
}Response
Example response
{
"classifier_init_script": "classifier_init_script",
"vectorizer_stop_words": "vectorizer_stop_words",
"metadata": "{}",
"code": "code",
"allow_values_not_specified_in_choices": true,
"description": "description",
"long_code": "long_code",
"title": "title",
"type": "address",
"value_regexp": "value_regexp",
"trained_after_documents_number": 1280358509,
"unsure_choice_value": "unsure_choice_value",
"read_only": true,
"depends_on_fields": [
"depends_on_fields",
"depends_on_fields"
],
"requires_text_annotations": true,
"hide_until_python": "hide_until_python",
"document_type": "document_type",
"order": 4803,
"convert_decimals_to_floats_in_formula_args": true,
"dirty": true,
"confidence": "High",
"hide_until_js": "hide_until_js",
"default_value": "{}",
"unsure_thresholds_by_value": "{}",
"warning_message": "warning_message",
"text_unit_type": "sentence",
"mlflow_model_uri": "mlflow_model_uri",
"display_yes_no": true,
"training_finished": true,
"mlflow_detect_on_document_level": true,
"formula": "formula",
"value_detection_strategy": "disabled",
"hidden_always": true,
"category": 0,
"family": 6,
"choices": "choices"
}Changes
- breaking
the request property
became not nullable (media type: application/json) - breaking
the request property
became not nullable (media type: application/x-www-form-urlencoded) - breaking
the request property
became not nullable (media type: multipart/form-data)
- breaking
- breaking
removed the enum value
amountof the request property(media type: application/json) - breaking
removed the enum value
amountof the request property(media type: application/x-www-form-urlencoded) - breaking
removed the enum value
amountof the request property(media type: multipart/form-data) - breaking
removed the enum value
booleanof the request property(media type: application/json) - breaking
removed the enum value
booleanof the request property(media type: application/x-www-form-urlencoded) - breaking
removed the enum value
booleanof the request property(media type: multipart/form-data) - breaking
removed the enum value
field_based_regexpsof the request property(media type: application/json) - breaking
removed the enum value
field_based_regexpsof the request property(media type: application/x-www-form-urlencoded) - breaking
removed the enum value
field_based_regexpsof the request property(media type: multipart/form-data) - breaking
removed the enum value
fields_based_ml_onlyof the request property(media type: application/json) - breaking
removed the enum value
fields_based_ml_onlyof the request property(media type: application/x-www-form-urlencoded) - breaking
removed the enum value
fields_based_ml_onlyof the request property(media type: multipart/form-data) - breaking
removed the enum value
fields_based_prob_ml_onlyof the request property(media type: application/json) - breaking
removed the enum value
fields_based_prob_ml_onlyof the request property(media type: application/x-www-form-urlencoded) - breaking
removed the enum value
fields_based_prob_ml_onlyof the request property(media type: multipart/form-data) - breaking
removed the enum value
formula_and_fields_based_mlof the request property(media type: application/json) - breaking
removed the enum value
formula_and_fields_based_mlof the request property(media type: application/x-www-form-urlencoded) - breaking
removed the enum value
formula_and_fields_based_mlof the request property(media type: multipart/form-data) - breaking
removed the enum value
python_coded_fieldof the request property(media type: application/json) - breaking
removed the enum value
python_coded_fieldof the request property(media type: application/x-www-form-urlencoded) - breaking
removed the enum value
python_coded_fieldof the request property(media type: multipart/form-data) - breaking
removed the enum value
regexps_and_text_based_mlof the request property(media type: application/json) - breaking
removed the enum value
regexps_and_text_based_mlof the request property(media type: application/x-www-form-urlencoded) - breaking
removed the enum value
regexps_and_text_based_mlof the request property(media type: multipart/form-data) - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: application/x-www-form-urlencoded) - warning
removed the request property
(media type: multipart/form-data) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: application/x-www-form-urlencoded) - warning
removed the request property
(media type: multipart/form-data) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: application/x-www-form-urlencoded) - warning
removed the request property
(media type: multipart/form-data) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: application/x-www-form-urlencoded) - warning
removed the request property
(media type: multipart/form-data) - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
removed the
amountenum value from theresponse property for the response status - info
removed the
booleanenum value from theresponse property for the response status - info
removed the
field_based_regexpsenum value from theresponse property for the response status - info
removed the
fields_based_ml_onlyenum value from theresponse property for the response status - info
removed the
fields_based_prob_ml_onlyenum value from theresponse property for the response status - info
removed the
formula_and_fields_based_mlenum value from theresponse property for the response status - info
removed the
python_coded_fieldenum value from theresponse property for the response status - info
removed the
regexps_and_text_based_mlenum value from theresponse property for the response status
- breaking