---
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`

## Request

- Base URL: `https://www.docusign.net/restapi`
- URL: `https://www.docusign.net/restapi/v2.1/accounts/{accountId}/favorite_templates`
- Auth: none declared

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.

## Changes

- **2019-10-08** (v2) `69cda11bf08a`: 1 info
  - endpoint added
- **2019-07-18** (v2) `8ad1b5a40f1b`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/changes/v2.1/accounts/:accountId/favorite_templates/put.md)

---

[API](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api.md) - [All operations](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/revisions/77f1998c313d?raw)
