メインコンテンツへスキップ
POST
/
docgen_templates
cURL
curl -L 'https://api.box.com/2.0/docgen_templates' \
     -H 'box-version: 2025.0' \
     -H 'Authorization: Bearer <ACCESS_TOKEN>' \
     -H 'Content-Type: application/json' \
     -D '{
        "file": {
            "id": "12345678",
            "type": "file"
        }
}'
{
  "file": {
    "type": "file",
    "id": "42037322"
  }
}
Box SDKのバージョニング戦略について詳しく学ぶ。」

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

box-version
enum<string>
required

Version header.

利用可能なオプション:
2025.0

Body

application/json

Marks the provided file as a Box Doc Gen template.

ドキュメントをBox Doc Genテンプレートとして設定するためのスキーマ。

file
ファイルの参照 · object
required

ドキュメントを生成するためのBox Doc Genテンプレートとしてファイルを設定します。

Response

現在Box Doc Genテンプレートとして設定されているファイル。

他のリソース内にネストされたときに使用されるBox Doc GenテンプレートのBase版の表示。

file
ファイルの参照 · object

ドキュメントの生成元となるファイルを有効にします。