ファイルをBox Doc Genテンプレートとして設定します。
現在Box Doc Genテンプレートとして設定されているファイル。
クライアントエラーが原因で、サーバーはリクエストを処理できないか、処理しません。
クライアントには、リクエストされたコンテンツまたはリソースへのアクセス権限がありません。
ユーザーが一定時間内に送信したリクエストが多すぎます。
サーバーで予期しない状況が発生しました。
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"
}
}'
await client.docgenTemplate.createDocgenTemplateV2025R0({
file: new FileReferenceV2025R0({ id: file.id }),
} satisfies DocGenTemplateCreateRequestV2025R0);
client.docgen_template.create_docgen_template_v2025_r0(FileReferenceV2025R0(id=file.id))
await client.DocgenTemplate.CreateDocgenTemplateV2025R0Async(requestBody: new DocGenTemplateCreateRequestV2025R0(file: new FileReferenceV2025R0(id: file.Id)));
{
"file": {
"id": "42037322",
"type": "file"
}
}