Method: templates.create

पूरा नाम: accounts.containers.workspaces.templates.create

GTM कस्टम टेंप्लेट बनाता है.

एचटीटीपी अनुरोध

POST https://tagmanager.googleapis.com/tagmanager/v2/{parent}/templates

पाथ पैरामीटर

पैरामीटर
parent

string

GTM Workspace के एपीआई का रिलेटिव पाथ. यह accounts/{account}/containers/{container}/workspaces/{workspace} फ़ॉर्मैट में होता है.

अनुरोध का मुख्य भाग

अनुरोध के मुख्य भाग में CustomTemplate का उदाहरण है.

जवाब का मुख्य भाग

कामयाब रहने पर, जवाब के मुख्य हिस्से में CustomTemplate का नया इंस्टेंस शामिल किया जाता है.

अनुमति के दायरे

नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:

  • https://www.googleapis.com/auth/tagmanager.edit.containers

ज़्यादा जानकारी के लिए, OAuth 2.0 Overview देखें.