ファイルカテゴリのフィールドを追加
curl --request POST \
--url https://docflow.textin.com/api/app-api/sip/platform/v2/category/fields/batch_add \
--header 'Content-Type: application/json' \
--header 'x-ti-app-id: <api-key>' \
--header 'x-ti-secret-code: <api-key>' \
--data '
{
"workspace_id": "1234567890",
"category_id": "1234567890",
"fields": [
{
"name": "インボイスコード",
"description": "インボイスコードの説明",
"prompt": "<string>",
"use_prompt": true,
"alias": [
"インボイス No.",
"請求書番号"
],
"identity": "invoice_number",
"multi_value": true,
"duplicate_value_distinct": true,
"transform_settings": {
"datetime_settings": {
"format": "yyyy-MM-dd"
},
"enumerate_settings": {
"items": [
"VAT 専用インボイス",
"VAT 一般インボイス",
"電子インボイス"
]
},
"regex_settings": {
"match": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"replace": "$1/$2/$3"
},
"mismatch_action": {
"default_value": "N/A"
}
}
}
],
"table_id": "<string>",
"with_detail": true
}
'{
"code": 200,
"msg": "<string>",
"result": [
{
"field_id": "<string>",
"name": "<string>",
"description": "<string>",
"prompt": "<string>",
"use_prompt": true,
"alias": [
"<string>"
],
"identity": "<string>",
"multi_value": true,
"duplicate_value_distinct": true,
"transform_settings": {
"datetime_settings": {
"format": "yyyy-MM-dd"
},
"enumerate_settings": {
"items": [
"VAT 専用インボイス",
"VAT 一般インボイス",
"電子インボイス"
]
},
"regex_settings": {
"match": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"replace": "$1/$2/$3"
},
"mismatch_action": {
"default_value": "N/A"
}
},
"extract_model": "<string>",
"enabled": 123
}
]
}ファイルカテゴリ
ファイルカテゴリのフィールドを追加
指定したファイルカテゴリ配下に複数のフィールドを追加します。全件成功または全件失敗のセマンティクスを採用しており、いずれかのフィールドが検証に失敗するとバッチ全体が失敗します。
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
category
/
fields
/
batch_add
ファイルカテゴリのフィールドを追加
curl --request POST \
--url https://docflow.textin.com/api/app-api/sip/platform/v2/category/fields/batch_add \
--header 'Content-Type: application/json' \
--header 'x-ti-app-id: <api-key>' \
--header 'x-ti-secret-code: <api-key>' \
--data '
{
"workspace_id": "1234567890",
"category_id": "1234567890",
"fields": [
{
"name": "インボイスコード",
"description": "インボイスコードの説明",
"prompt": "<string>",
"use_prompt": true,
"alias": [
"インボイス No.",
"請求書番号"
],
"identity": "invoice_number",
"multi_value": true,
"duplicate_value_distinct": true,
"transform_settings": {
"datetime_settings": {
"format": "yyyy-MM-dd"
},
"enumerate_settings": {
"items": [
"VAT 専用インボイス",
"VAT 一般インボイス",
"電子インボイス"
]
},
"regex_settings": {
"match": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"replace": "$1/$2/$3"
},
"mismatch_action": {
"default_value": "N/A"
}
}
}
],
"table_id": "<string>",
"with_detail": true
}
'{
"code": 200,
"msg": "<string>",
"result": [
{
"field_id": "<string>",
"name": "<string>",
"description": "<string>",
"prompt": "<string>",
"use_prompt": true,
"alias": [
"<string>"
],
"identity": "<string>",
"multi_value": true,
"duplicate_value_distinct": true,
"transform_settings": {
"datetime_settings": {
"format": "yyyy-MM-dd"
},
"enumerate_settings": {
"items": [
"VAT 専用インボイス",
"VAT 一般インボイス",
"電子インボイス"
]
},
"regex_settings": {
"match": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"replace": "$1/$2/$3"
},
"mismatch_action": {
"default_value": "N/A"
}
},
"extract_model": "<string>",
"enabled": 123
}
]
}ボディ
application/json
⌘I

