---
title: "Set one or more templates as account favorites."
method: PUT
path: "/v2.1/accounts/{accountId}/favorite_templates"
tags: ["FavoriteTemplates"]
---

# Set one or more templates as account favorites.

`PUT /v2.1/accounts/{accountId}/favorite_templates`

Set one or more templates as account favorites.

Your request should include each template as a separate `favoriteTemplatesContentItem` JSON object, like this:
```
{
    "favoriteTemplates": [
        {
            "templateId": "6bc0584f-xxxx-xxxx-xxxx-35ab28cc44e1"
        },
        {
            "templateId": "8ae9b3452-xxxx-xxxx-xxx-ac0de23fa57f"
        }
    ]
}
```

## Path parameters

- `accountId` string, required

## Request body

- FavoriteTemplatesInfo
  - `errorDetails` ErrorDetails — This object describes errors that occur. It is only valid for responses and ignored in requests.
    - `errorCode` string — The code associated with the error condition.
    - `message` string — A brief message describing the error condition.
  - `favoriteTemplates` FavoriteTemplatesContentItem[] — The favorite templates acted upon by the call.
    - `errorDetails` ErrorDetails — This object describes errors that occur. It is only valid for responses and ignored in requests.
      - `errorCode` string — The code associated with the error condition.
      - `message` string — A brief message describing the error condition.
    - `favoritedDate` string — Time at which the template was marked as favorite.
    - `templateId` string — The ID of the template.
  - `templatesUpdatedCount` integer — The number of templates successfully updated by the call. This property is read-only.

## Response `200`

Successful response.

## Other responses

- `400` — Error encountered.

---

[API](https://skmtc.net/docusign/apis/docusign-esignature-rest-api.md) · [All operations](https://skmtc.net/docusign/apis/docusign-esignature-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/docusign/docusign-esignature-rest-api/revisions/77f1998c313d/schema)
