---
title: "Edit doc group template"
method: PATCH
path: "/v2/document-group-templates/{doc_group_template_id}"
---

# Edit doc group template

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

## Request

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

This endpoint allows users to reorder documents, rename the document group template, and update the action performed upon completion of the document group template.

## Request body

- object
  - `order` string[]: List of document IDs in the document group template.
  - `template_group_name` string: Name of the document group template.
  - `email_action_on_complete` string: Specifies the action to be taken upon invite completion. Allowed values: `documents_and_attachments`: Email documents and attachments to all parties. `documents_and_attachments_only_to_recipients`: Email documents and attachments only to recipients. `without_documents_and_attachments`: Do not email documents or any attachments.

## Response `204`

Success.

## Other responses

- `400`: **Authorization errors:** * Wrong, expired, or missing token. **Validation errors:** - `order` type is incorrect. - Document IDs are not unique. - Document ID type is incorrect. - Document ID is incorrect. - `template_group_name` type is incorrect. - `template_group_name` has unsupported symbols. - `template_group_name` is too long. Max length is 255 symbols. - `email_action_on_complete` value type is incorrect. - `email_action_on_complete` is incorrect.
- `403`: Access to document group template denied.
- `404`: `doc_group_template_id` is incorrect.
- `422`: Payload documents do not match the document group template.

---

[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)
