---
title: "Add template to doc group template"
method: POST
path: "/v2/document-group-templates/{doc_group_template_id}/templates"
---

# Add template to doc group template

`POST /v2/document-group-templates/{doc_group_template_id}/templates`

## Request

- Base URL: `https://api.signnow.com`
- URL: `https://api.signnow.com/v2/document-group-templates/{doc_group_template_id}/templates`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/signnow/apis/signnow-api/docs/v2/document-group-templates/:doc_group_template_id/templates/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows API users to add a document or template to a document group template.

**Note**: Uploaded documents are automatically converted to templates. Templates or documents added to the document group template are accessible only from the document group template management page.

The successful request returns an ID of the template added to the document group template.

## Request body

- object
  - `document_id` string, required: ID of the document to be added to the document group template. Only one parameter (`document_id` or `template_id`) should be provided per request.
  - `template_id` string, required: ID of the template to be added to the document group template. Only one parameter (`document_id` or `template_id`) should be provided per request.

## Response `200`

Successful response.

- object
  - `data` object: Template added to the document group template.
    - `id` string: ID of the template.

## Other responses

- `400`: - Wrong, expired, or missing token. - Only one of `document_id` or `template_id` can be used. - `document_id` is not a string. - `document_id` or `template_id` is required. - Incorrect `document_id`. - User is not the owner of the document group template. - User is not the document owner. - Document has active signature invites. - Document is in the document group. - Document is in the document group template. - User is not the template owner. - Template is in the document group template. - `template_id` is not a string. - Incorrect `template_id`. - Document not found. - Template not found.
- `404`: - Document group template not found.

---

[API](https://skmtc.dev/signnow/apis/signnow-api.md) - [All operations](https://skmtc.dev/signnow/apis/signnow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/signnow/apis/signnow-api/revisions/1c9c30a6142b?raw)
