Marks a file as a Box Doc Gen template.
Version header
Value is always 2025.0
Marks the file as a Box Doc Gen template to generate the document from.
"42037322"
ID of the object
"file"
file
Value is always file
The file which has now been marked as a Box Doc Gen template.
The server cannot or will not process the request due to an apparent client error.
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"
}
}'
{
"file": {
"id": "42037322",
"type": "file"
}
}