Favorite Templates

Remove one or more templates from the account favorites

DELETE
/v2.1/accounts/{accountId}/favorite_templates

Remove one or more templates from the account favorites.

Your request should include each template to remove as a separate favoriteTemplatesContentItem JSON object, like this:

{    "favoriteTemplates": [        {            "templateId": "6bc0584f-xxxx-xxxx-xxxx-35ab28cc44e1"        },        {            "templateId": "8ae9b3452-xxxx-xxxx-xxx-ac0de23fa57f"        }    ]}

The response includes the IDs of the templates that were successfully removed from your favorites. To get the account's remaining favorite templates, use the getFavoriteTemplates endpoint.

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.

Response Body

application/json

application/json

curl -X DELETE "https://example.com/v2.1/accounts/string/favorite_templates"
{  "errorDetails": {    "errorCode": "string",    "message": "string"  },  "favoriteTemplates": [    {      "errorDetails": {        "errorCode": "string",        "message": "string"      },      "favoritedDate": "string",      "templateId": "string"    }  ],  "templatesUpdatedCount": 0}