メインコンテンツへスキップ
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
category
/
tables
/
batch_add
ファイルカテゴリのテーブルを追加
curl --request POST \
  --url https://docflow.textin.com/api/app-api/sip/platform/v2/category/tables/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",
  "tables": [
    {
      "name": "明細テーブル",
      "prompt": "<string>",
      "collect_from_multi_table": true,
      "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"
            }
          }
        }
      ]
    }
  ],
  "with_detail": true
}
'
{
  "code": 200,
  "msg": "<string>",
  "result": [
    {
      "table_id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "prompt": "<string>",
      "collect_from_multi_table": true,
      "extract_model": "<string>",
      "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"
            }
          },
          "id": "1234567890",
          "extract_model": "Model 1"
        }
      ]
    }
  ]
}

承認

x-ti-app-id
string
header
必須
x-ti-secret-code
string
header
必須

ボディ

application/json
workspace_id
string
必須

ワークスペース ID

:

"1234567890"

category_id
string
必須

ファイルカテゴリ ID

:

"1234567890"

tables
object[]
必須

追加するテーブルのリスト

Minimum array length: 1
with_detail
boolean

各テーブルの完全な詳細(フィールドリストを含む)を返すかどうか

レスポンス

200 - application/json

テーブルの追加に成功

code
integer
必須

ステータスコード

:

200

msg
string
必須

ステータス説明

result
object[]

作成結果リスト。リクエストと同じ順序です