Authorization: ********************
{
"file_template_id": "string",
"name": "string",
"description": "string",
"field_names": [
"string"
],
"file_format_params": {
"skip_first_no_lines": 0,
"skip_lines_match_regex": "string",
"trim_spaces": true,
"custom_delimiter": "string",
"skip_first_line": true,
"json_dot_path": "string"
},
"file_format": "FILE_FORMAT_CSV",
"fields": [
{
"name": "string",
"type": "FIELD_TYPE_STRING",
"date_modified": "1s",
"metadata": {
"time_format": "string",
"precision": "DATETIME_PRECISION_NOW",
"remove_characters": "string",
"replace_empty": "string",
"replace_error": "string",
"remove_letters": true,
"remove_numbers": true,
"remove_symbols": true,
"leave_characters": "string",
"remove_string": "string",
"json_dot_path": "string",
"json_force_type_match": true,
"starting_position": 0,
"field_length": 0
},
"description": "string"
}
]
}
curl --location --request POST 'https://api.cbf.tcn.com/api/v0alpha/lms/file_templates/update' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"file_template_id": "string",
"name": "string",
"description": "string",
"field_names": [
"string"
],
"file_format_params": {
"skip_first_no_lines": 0,
"skip_lines_match_regex": "string",
"trim_spaces": true,
"custom_delimiter": "string",
"skip_first_line": true,
"json_dot_path": "string"
},
"file_format": "FILE_FORMAT_CSV",
"fields": [
{
"name": "string",
"type": "FIELD_TYPE_STRING",
"date_modified": "1s",
"metadata": {
"time_format": "string",
"precision": "DATETIME_PRECISION_NOW",
"remove_characters": "string",
"replace_empty": "string",
"replace_error": "string",
"remove_letters": true,
"remove_numbers": true,
"remove_symbols": true,
"leave_characters": "string",
"remove_string": "string",
"json_dot_path": "string",
"json_force_type_match": true,
"starting_position": 0,
"field_length": 0
},
"description": "string"
}
]
}'
{
"file_template_id": "string",
"name": "string",
"description": "string",
"field_names": [
"string"
],
"file_format_params": {
"skip_first_no_lines": 0,
"skip_lines_match_regex": "string",
"trim_spaces": true,
"custom_delimiter": "string",
"skip_first_line": true,
"json_dot_path": "string"
},
"file_format": "FILE_FORMAT_CSV",
"fields": [
{
"name": "string",
"type": "FIELD_TYPE_STRING",
"date_modified": "1s",
"metadata": {
"time_format": "string",
"precision": "DATETIME_PRECISION_NOW",
"remove_characters": "string",
"replace_empty": "string",
"replace_error": "string",
"remove_letters": true,
"remove_numbers": true,
"remove_symbols": true,
"leave_characters": "string",
"remove_string": "string",
"json_dot_path": "string",
"json_force_type_match": true,
"starting_position": 0,
"field_length": 0
},
"description": "string"
}
]
}