Skip to main content
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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://developer.box.com/llms.txt

Use this file to discover all available pages before exploring further.

Learn more about Box SDK versioning strategy.

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.

Available options:
2025.0

Body

application/json

Marks the provided file as a Box Doc Gen template.

The schema for marking document as Box Doc Gen template.

file
File reference · object
required

Marks the file as a Box Doc Gen template to generate the document from.

Response

The file which has now been marked as a Box Doc Gen template.

A base representation of a Box Doc Gen template, used when nested within another resource.

file
File reference · object

Enable the file to generate a document from.