Skip to main content
POST
/
datasets
/
{dataset_id}
/
metadata
メタデータフィールドを作成
curl --request POST \
  --url https://{api_base_url}/datasets/{dataset_id}/metadata \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "b5c6d7e8-f9a0-1b2c-3d4e-5f6a7b8c9d0e",
  "name": "author",
  "type": "string"
}

Authorizations

Authorization
string
header
required

API Key 認証です。すべての API リクエストにおいて、Authorization HTTP ヘッダーに Bearer プレフィックスを付けた API Key を含めてください。例:Authorization: Bearer {API_KEY}API Key はサーバーサイドに保存し、クライアントサイドで共有・保存しないことを強く推奨します。API Key の漏洩は深刻な結果につながる可能性があります。

Path Parameters

dataset_id
string<uuid>
required

ナレッジベース ID です。

Body

application/json
type
enum<string>
required

string はテキスト値、number は数値、time は日付/時刻値です。

Available options:
string,
number,
time
name
string
required

メタデータフィールド名です。

Response

201 - application/json

メタデータフィールドが正常に作成されました。

id
string

メタデータフィールドの識別子です。

name
string

メタデータフィールド名です。

type
string

メタデータフィールドの種類です。

Last modified on June 1, 2026