|
| 1 | +# DocgenTemplateManager |
| 2 | + |
| 3 | +- [Create a Box Doc Gen template](#create-a-box-doc-gen-template) |
| 4 | +- [List Box Doc Gen templates](#list-box-doc-gen-templates) |
| 5 | +- [Delete Box Doc Gen template](#delete-box-doc-gen-template) |
| 6 | +- [Get Box Doc Gen template by ID](#get-box-doc-gen-template-by-id) |
| 7 | +- [List all Box Doc Gen template tags in template](#list-all-box-doc-gen-template-tags-in-template) |
| 8 | +- [Get list of all Box Doc Gen jobs for template](#get-list-of-all-box-doc-gen-jobs-for-template) |
| 9 | + |
| 10 | +## Create a Box Doc Gen template |
| 11 | + |
| 12 | +Marks a file as a Box Doc Gen template. |
| 13 | + |
| 14 | +This operation is performed by calling function `createDocgenTemplateV2025R0`. |
| 15 | + |
| 16 | +See the endpoint docs at |
| 17 | +[API Reference](https://developer.box.com/reference/post-docgen-templates-v2025.0/). |
| 18 | + |
| 19 | +<!-- sample post_docgen_templates_v2025.0 --> |
| 20 | + |
| 21 | +```ts |
| 22 | +await client.docgenTemplate.createDocgenTemplateV2025R0({ |
| 23 | + file: new FileReferenceV2025R0({ id: uploadedFile.id }), |
| 24 | +} satisfies DocGenTemplateCreateRequestV2025R0); |
| 25 | +``` |
| 26 | + |
| 27 | +### Arguments |
| 28 | + |
| 29 | +- requestBody `DocGenTemplateCreateRequestV2025R0` |
| 30 | + - Request body of createDocgenTemplateV2025R0 method |
| 31 | +- optionalsInput `CreateDocgenTemplateV2025R0OptionalsInput` |
| 32 | + - |
| 33 | + |
| 34 | +### Returns |
| 35 | + |
| 36 | +This function returns a value of type `DocGenTemplateBaseV2025R0`. |
| 37 | + |
| 38 | +The file which has now been marked as a Box Doc Gen template. |
| 39 | + |
| 40 | +## List Box Doc Gen templates |
| 41 | + |
| 42 | +Lists Box Doc Gen templates on which the user is a collaborator. |
| 43 | + |
| 44 | +This operation is performed by calling function `getDocgenTemplatesV2025R0`. |
| 45 | + |
| 46 | +See the endpoint docs at |
| 47 | +[API Reference](https://developer.box.com/reference/get-docgen-templates-v2025.0/). |
| 48 | + |
| 49 | +<!-- sample get_docgen_templates_v2025.0 --> |
| 50 | + |
| 51 | +```ts |
| 52 | +await client.docgenTemplate.getDocgenTemplatesV2025R0(); |
| 53 | +``` |
| 54 | + |
| 55 | +### Arguments |
| 56 | + |
| 57 | +- queryParams `GetDocgenTemplatesV2025R0QueryParams` |
| 58 | + - Query parameters of getDocgenTemplatesV2025R0 method |
| 59 | +- headersInput `GetDocgenTemplatesV2025R0HeadersInput` |
| 60 | + - Headers of getDocgenTemplatesV2025R0 method |
| 61 | +- cancellationToken `undefined | CancellationToken` |
| 62 | + - Token used for request cancellation. |
| 63 | + |
| 64 | +### Returns |
| 65 | + |
| 66 | +This function returns a value of type `DocGenTemplatesV2025R0`. |
| 67 | + |
| 68 | +Returns a collection of templates. |
| 69 | + |
| 70 | +## Delete Box Doc Gen template |
| 71 | + |
| 72 | +Unmarks file as Box Doc Gen template |
| 73 | + |
| 74 | +This operation is performed by calling function `deleteDocgenTemplateByIdV2025R0`. |
| 75 | + |
| 76 | +See the endpoint docs at |
| 77 | +[API Reference](https://developer.box.com/reference/delete-docgen-templates-id-v2025.0/). |
| 78 | + |
| 79 | +<!-- sample delete_docgen_templates_id_v2025.0 --> |
| 80 | + |
| 81 | +```ts |
| 82 | +await client.docgenTemplate.deleteDocgenTemplateByIdV2025R0( |
| 83 | + createdDocgenTemplate.file!.id, |
| 84 | +); |
| 85 | +``` |
| 86 | + |
| 87 | +### Arguments |
| 88 | + |
| 89 | +- templateId `string` |
| 90 | + - ID of the file which will no longer be marked as a Box Doc Gen template. Example: "123" |
| 91 | +- optionalsInput `DeleteDocgenTemplateByIdV2025R0OptionalsInput` |
| 92 | + - |
| 93 | + |
| 94 | +### Returns |
| 95 | + |
| 96 | +This function returns a value of type `undefined`. |
| 97 | + |
| 98 | +Returns an empty response when a file is no longer marked as a Box Doc Gen template. |
| 99 | + |
| 100 | +## Get Box Doc Gen template by ID |
| 101 | + |
| 102 | +Lists details of a specific Box Doc Gen template. |
| 103 | + |
| 104 | +This operation is performed by calling function `getDocgenTemplateByIdV2025R0`. |
| 105 | + |
| 106 | +See the endpoint docs at |
| 107 | +[API Reference](https://developer.box.com/reference/get-docgen-templates-id-v2025.0/). |
| 108 | + |
| 109 | +<!-- sample get_docgen_templates_id_v2025.0 --> |
| 110 | + |
| 111 | +```ts |
| 112 | +await client.docgenTemplate.getDocgenTemplateByIdV2025R0( |
| 113 | + createdDocgenTemplate.file!.id, |
| 114 | +); |
| 115 | +``` |
| 116 | + |
| 117 | +### Arguments |
| 118 | + |
| 119 | +- templateId `string` |
| 120 | + - The ID of a Box Doc Gen template. Example: 123 |
| 121 | +- optionalsInput `GetDocgenTemplateByIdV2025R0OptionalsInput` |
| 122 | + - |
| 123 | + |
| 124 | +### Returns |
| 125 | + |
| 126 | +This function returns a value of type `DocGenTemplateV2025R0`. |
| 127 | + |
| 128 | +Returns a template. |
| 129 | + |
| 130 | +## List all Box Doc Gen template tags in template |
| 131 | + |
| 132 | +Lists all tags in a Box Doc Gen template. |
| 133 | + |
| 134 | +This operation is performed by calling function `getDocgenTemplateTagsV2025R0`. |
| 135 | + |
| 136 | +See the endpoint docs at |
| 137 | +[API Reference](https://developer.box.com/reference/get-docgen-templates-id-tags-v2025.0/). |
| 138 | + |
| 139 | +<!-- sample get_docgen_templates_id_tags_v2025.0 --> |
| 140 | + |
| 141 | +```ts |
| 142 | +await client.docgenTemplate.getDocgenTemplateTagsV2025R0( |
| 143 | + fetchedDocgenTemplate.file!.id, |
| 144 | +); |
| 145 | +``` |
| 146 | + |
| 147 | +### Arguments |
| 148 | + |
| 149 | +- templateId `string` |
| 150 | + - ID of template. Example: 123 |
| 151 | +- optionalsInput `GetDocgenTemplateTagsV2025R0OptionalsInput` |
| 152 | + - |
| 153 | + |
| 154 | +### Returns |
| 155 | + |
| 156 | +This function returns a value of type `DocGenTagsV2025R0`. |
| 157 | + |
| 158 | +A list of document generation template tags.Processing tags for the file. |
| 159 | + |
| 160 | +## Get list of all Box Doc Gen jobs for template |
| 161 | + |
| 162 | +Lists the users jobs which use this template. |
| 163 | + |
| 164 | +This operation is performed by calling function `getDocgenTemplateJobByIdV2025R0`. |
| 165 | + |
| 166 | +See the endpoint docs at |
| 167 | +[API Reference](https://developer.box.com/reference/get-docgen-template-jobs-id-v2025.0/). |
| 168 | + |
| 169 | +<!-- sample get_docgen_template_jobs_id_v2025.0 --> |
| 170 | + |
| 171 | +```ts |
| 172 | +await client.docgenTemplate.getDocgenTemplateJobByIdV2025R0( |
| 173 | + fetchedDocgenTemplate.file!.id, |
| 174 | +); |
| 175 | +``` |
| 176 | + |
| 177 | +### Arguments |
| 178 | + |
| 179 | +- templateId `string` |
| 180 | + - Id of template to fetch jobs for. Example: 123 |
| 181 | +- optionalsInput `GetDocgenTemplateJobByIdV2025R0OptionalsInput` |
| 182 | + - |
| 183 | + |
| 184 | +### Returns |
| 185 | + |
| 186 | +This function returns a value of type `DocGenJobsV2025R0`. |
| 187 | + |
| 188 | +A single Box Doc Gen template. |
0 commit comments