Marks a file as a Box Doc Gen template.
The file which has now been marked as a Box Doc Gen template.
クライアントエラーが原因で、サーバーはリクエストを処理できないか、処理しません。
The client does not have access rights to the content or resource requested.
The user has sent too many requests in a given amount of time.
An unexpected condition was encountered on the server.
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: uploadedFile.id }),
} satisfies DocGenTemplateCreateRequestV2025R0);
client.docgen_template.create_docgen_template_v2025_r0(
FileReferenceV2025R0(id=uploaded_file.id)
)
await client.DocgenTemplate.CreateDocgenTemplateV2025R0Async(requestBody: new DocGenTemplateCreateRequestV2025R0(file: new FileReferenceV2025R0(id: uploadedFile.Id)));
{
"file": {
"id": "42037322",
"type": "file"
}
}