Favorite Templates

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"        }    ]}

Authorization

OAuth2
AuthorizationBearer <token>

OAuth 2.0 access token obtained via Authorization Code Grant or JWT Grant.

In: header

Path Parameters

accountId*string

The external account number (int) or account ID GUID.

Request Body

application/json

errorDetails?

This object describes errors that occur. It is only valid for responses and ignored in requests.

favoriteTemplates?array<>

The favorite templates acted upon by the call.

templatesUpdatedCount?integer

The number of templates successfully updated by the call. This property is read-only.

Formatint32

Response Body

application/json

application/json

curl -X PUT "https://example.com/v2.1/accounts/string/favorite_templates" \  -H "Content-Type: application/json" \  -d '{}'
{  "errorDetails": {    "errorCode": "string",    "message": "string"  },  "favoriteTemplates": [    {      "errorDetails": {        "errorCode": "string",        "message": "string"      },      "favoritedDate": "string",      "templateId": "string"    }  ],  "templatesUpdatedCount": 0}