- Create Box Doc Gen template
- List Box Doc Gen templates
- Delete Box Doc Gen template
- Get Box Doc Gen template by ID
- List all Box Doc Gen template tags in template
- Get list of all Box Doc Gen jobs for template
Marks a file as a Box Doc Gen template.
This operation is performed by calling function createDocgenTemplateV2025R0.
See the endpoint docs at API Reference.
await client.docgenTemplate.createDocgenTemplateV2025R0({
file: new FileReferenceV2025R0({ id: file.id }),
} satisfies DocGenTemplateCreateRequestV2025R0);- requestBody
DocGenTemplateCreateRequestV2025R0- Request body of createDocgenTemplateV2025R0 method
- optionalsInput
CreateDocgenTemplateV2025R0OptionalsInput
This function returns a value of type DocGenTemplateBaseV2025R0.
The file which has now been marked as a Box Doc Gen template.
Lists Box Doc Gen templates on which the user is a collaborator.
This operation is performed by calling function getDocgenTemplatesV2025R0.
See the endpoint docs at API Reference.
await client.docgenTemplate.getDocgenTemplatesV2025R0();- queryParams
GetDocgenTemplatesV2025R0QueryParams- Query parameters of getDocgenTemplatesV2025R0 method
- headersInput
GetDocgenTemplatesV2025R0HeadersInput- Headers of getDocgenTemplatesV2025R0 method
- cancellationToken
undefined | CancellationToken- Token used for request cancellation.
This function returns a value of type DocGenTemplatesV2025R0.
Returns a collection of templates.
Unmarks file as Box Doc Gen template.
This operation is performed by calling function deleteDocgenTemplateByIdV2025R0.
See the endpoint docs at API Reference.
await client.docgenTemplate.deleteDocgenTemplateByIdV2025R0(
createdDocgenTemplate.file!.id,
);- templateId
string- ID of the file which will no longer be marked as a Box Doc Gen template. Example: "123"
- optionalsInput
DeleteDocgenTemplateByIdV2025R0OptionalsInput
This function returns a value of type undefined.
Returns an empty response when a file is no longer marked as a Box Doc Gen template.
Lists details of a specific Box Doc Gen template.
This operation is performed by calling function getDocgenTemplateByIdV2025R0.
See the endpoint docs at API Reference.
await client.docgenTemplate.getDocgenTemplateByIdV2025R0(
createdDocgenTemplate.file!.id,
);- templateId
string- The ID of a Box Doc Gen template. Example: 123
- optionalsInput
GetDocgenTemplateByIdV2025R0OptionalsInput
This function returns a value of type DocGenTemplateV2025R0.
Returns a template.
Lists all tags in a Box Doc Gen template.
This operation is performed by calling function getDocgenTemplateTagsV2025R0.
See the endpoint docs at API Reference.
await client.docgenTemplate.getDocgenTemplateTagsV2025R0(
fetchedDocgenTemplate.file!.id,
);- templateId
string- ID of template. Example: 123
- optionalsInput
GetDocgenTemplateTagsV2025R0OptionalsInput
This function returns a value of type DocGenTagsV2025R0.
A list of document generation template tags.Processing tags for the file.
Lists the users jobs which use this template.
This operation is performed by calling function getDocgenTemplateJobByIdV2025R0.
See the endpoint docs at API Reference.
await client.docgenTemplate.getDocgenTemplateJobByIdV2025R0(
fetchedDocgenTemplate.file!.id,
);- templateId
string- Id of template to fetch jobs for. Example: 123
- optionalsInput
GetDocgenTemplateJobByIdV2025R0OptionalsInput
This function returns a value of type DocGenJobsV2025R0.
A single Box Doc Gen template.