POST /api/v1/document/document-field-detectors/
Changed onCreate Document Field Params: - fields: uid - category: str - max 64 symbols (from pre-defined choices) - exclude_regexps: str - optional - definition_words: str - optional - include_regexps: str - optional - regexps_pre_process_lower: bool, default=False - detected_value: str - max 256 chars - extraction_hint: str - max 30 chars (from pre-defined choices) - text_part: str - max 30 chars (from pre-defined choices)
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.
Request body
Example request
{
"exclude_regexps": "exclude_regexps",
"text_part": "FULL",
"detect_limit_count": -1803530559,
"definition_words": "definition_words",
"warning_message": "warning_message",
"uid": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"detected_value": "detected_value",
"field": "field",
"detect_limit_unit": "NONE",
"include_regexps": "include_regexps",
"category": "simple_config",
"extraction_hint": "TAKE_FIRST",
"regexps_pre_process_lower": true
}Response
Example response
{
"exclude_regexps": "exclude_regexps",
"text_part": "FULL",
"detect_limit_count": -1803530559,
"definition_words": "definition_words",
"warning_message": "warning_message",
"uid": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"detected_value": "detected_value",
"field": "field",
"detect_limit_unit": "NONE",
"include_regexps": "include_regexps",
"category": "simple_config",
"extraction_hint": "TAKE_FIRST",
"regexps_pre_process_lower": true
}Changes
- breaking
the request property
became required (media type: application/json) - breaking
the request property
became required (media type: application/x-www-form-urlencoded) - breaking
the request property
became required (media type: multipart/form-data) - breaking
the request property
became required (media type: application/json) - breaking
the request property
became required (media type: application/x-www-form-urlencoded) - breaking
the request property
became required (media type: multipart/form-data) - breaking
the request property
became required (media type: application/json) - breaking
the request property
became required (media type: application/x-www-form-urlencoded) - breaking
the request property
became required (media type: multipart/form-data) - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status
- breaking
- info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/x-www-form-urlencoded) - info
added the new optional request property
(media type: multipart/form-data) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/x-www-form-urlencoded) - info
added the new optional request property
(media type: multipart/form-data) - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info