<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom webhook templates are network specific? in Cloud Networking Platform</title>
    <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402587#M1687</link>
    <description>&lt;P&gt;Thanks, this is really weird to use.&lt;BR /&gt;Adding it in Default Reciepients and clicking save will remove it from the default reciepients, but also leaves the webhook section empty. Only after reloading the whole page, the change is visible&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 11:53:03 GMT</pubDate>
    <dc:creator>ksumann</dc:creator>
    <dc:date>2024-01-25T11:53:03Z</dc:date>
    <item>
      <title>Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402577#M1677</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;i wanted to create a custom template for a webhook. In the Dashboard its in ORGANISATION -&amp;gt; API and Webhooks.&lt;/P&gt;&lt;P&gt;After creating it, i noticed i couldn't use it in a network template because another network was selected while creating it.&lt;/P&gt;&lt;P&gt;I thought it would be available organisation wide, creating the template again for every network is pointless.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 16:14:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402577#M1677</guid>
      <dc:creator>ksumann</dc:creator>
      <dc:date>2024-01-24T16:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402578#M1678</link>
      <description>&lt;P&gt;"The HTTP Servers are network-scoped, so the payload templates followed the similar structure. That being said, we are looking at options for org-wide management but it may take some time. Until then, I would make use of Action Batches if you have to deploy these at scale. "&lt;/P&gt;&lt;P&gt;The original discussion.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.meraki.com/t5/Developers-APIs/IN-BETA-Webhook-Custom-Payload-Templates/m-p/131231" target="_blank"&gt;Re: IN BETA: Webhook **Custom** Payload Templates - The Meraki Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 16:29:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402578#M1678</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2024-01-24T16:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402579#M1679</link>
      <description>&lt;P&gt;Thanks, but later in the discussion:&lt;/P&gt;&lt;P&gt;"As an extra bonus, you will now be able to manage Webhook templates at the Organization level and share the templates across your networks. "&lt;/P&gt;&lt;P&gt;No, i can not use it across different networks, or even templates&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 16:46:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402579#M1679</guid>
      <dc:creator>ksumann</dc:creator>
      <dc:date>2024-01-24T16:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402580#M1680</link>
      <description>&lt;P&gt;Have you opened a support case?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 17:02:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402580#M1680</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2024-01-24T17:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402581#M1681</link>
      <description>&lt;P&gt;Custom templates are org-wide and can be shared by multiple networks, I use the this way.&lt;/P&gt;&lt;P&gt;Not sure why you are seeing a network to select when creating a template, that is not an option I see within the template editor.&lt;/P&gt;&lt;P&gt;Can you post a screenshot of your view in the editor? Otherwise as &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/51406"&gt;@alessandrodematos&lt;/A&gt; says, open a case.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 17:12:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402581#M1681</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2024-01-24T17:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402582#M1682</link>
      <description>&lt;P&gt;I have not opened a support case, but i will do if there is no other fix.&lt;/P&gt;&lt;P&gt;So here you see the network Test selected and a Teams_Test template created.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ksumann_0-1706116935822.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263363i29A964E8DEE3EC66/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now, i want to use it in a different network, not there anymore&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ksumann_1-1706117101554.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263364iEA0A49B938B3D66E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and also not selectable in the networks alert section&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ksumann_2-1706117239797.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263365i1E77FB1F2B7198B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 17:26:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402582#M1682</guid>
      <dc:creator>ksumann</dc:creator>
      <dc:date>2024-01-24T17:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402583#M1683</link>
      <description>&lt;P&gt;You need to use the API for it to be org wide.&lt;/P&gt;&lt;P&gt;Main: configure-meraki-custom-templates.py&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;#Import modules
import requests
import json
import os
import config
#API documentation for calls used in this script. 
#!! This API Call is in early access. Make sure to enable EA API access under organization -&amp;gt; Early Access.
#https://developer.cisco.com/meraki/api-latest/create-organization-webhooks-payload-template/
#set global vars
organizationId = config.orgid
apikey = os.environ.get("MERAKI_DASHBOARD_API_KEY")
headers = {
    "X-Cisco-Meraki-API-Key": apikey,
    "Content-Type":"application/json",
    "Accept":"application/json"
}
#open webhook template settings file and convert it to a python dictionary
with open ("templatesettings.json") as f:
    jsonfile = json.load(f)
#serialize python dict to json string for use in POST request
payload = json.dumps(jsonfile)

#generate post request to payloadTemplate URI and formats string with organizationId in configuration file.
try:
    url = "https://api.meraki.com/api/v1/organizations/{}/webhooks/payloadTemplates".format(organizationId)
    response = requests.request('POST', url , headers = headers, data = payload)
    print(response.status_code)
    print(response.text)
except requests.exceptions.HTTPError as err:
    raise SystemExit(err)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; config file: config.py&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;orgid = "&amp;lt;&amp;lt;insert org id&amp;gt;&amp;gt;"
#example orgid = "123456789"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Settings: templatesettings.json&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;{
    "name": "ServiceNow",
    "headers": [{
            "name": "Authorization",
            "template": "Basic {{ sharedSecret | base64_encode }}"
        },
        {
            "name": "Content-Type",
            "template": "application/json"
        },
        {
            "name": "Accept",
            "template": "*/*"
        },
        {
            "name": "Accept-Encoding",
            "template": "gzip, compress, br"
        }
    ],
    "body": "{\r\n\"version\": \"0.1\",\r\n\"sharedSecret\": \"{{sharedSecret}}\",\r\n\"sentAt\": \"{{sentAt}}\",\r\n\"organizationId\": \"{{organizationId}}\",\r\n\"organizationName\": \"{{organizationName}}\",\r\n\"organizationUrl\": \"{{organizationUrl}}\",\r\n\"networkId\": \"{{networkId}}\",\r\n\"networkName\": \"{{networkName}}\",\r\n\"networkUrl\": \"{{networkUrl}}\",\r\n\"networkTags\": {{ networkTags | jsonify }},\r\n\"deviceSerial\": \"{{deviceSerial}}\",\r\n\"deviceMac\": \"{{deviceMac}}\",\r\n\"deviceName\": \"{{deviceName}}\",\r\n\"deviceUrl\": \"{{deviceUrl}}\",\r\n\"deviceTags\": {{ deviceTags | jsonify }},\r\n\"deviceModel\": \"{{deviceModel}}\",\r\n\"alertId\": \"{{alertId}}\",\r\n\"alertType\": \"{{alertType}}\",\r\n\"alertTypeId\": \"{{alertTypeId}}\",\r\n\"alertLevel\": \"{{alertLevel}}\",\r\n\"occurredAt\": \"{{occurredAt}}\",\r\n\"alertData\": {{ alertData | jsonify }}\r\n}\r\n",
    "sharing": {
        "byNetwork": {
            "adminsCanModify": true,
            "ids": [
                null
            ],
            "withAll": true
        }
    }
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Take a note of this part in the templatesettings.json part. No idea why its not in the GUI yet, but set this to true and you can use it org wide.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"sharing"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;        &lt;/SPAN&gt;&lt;SPAN&gt;"byNetwork"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;            &lt;/SPAN&gt;&lt;SPAN&gt;"adminsCanModify"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;            &lt;/SPAN&gt;&lt;SPAN&gt;"ids"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;                &lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;            ],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;            &lt;/SPAN&gt;&lt;SPAN&gt;"withAll"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true &amp;lt;---&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;read me:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;# cisco-meraki
Automation scripts for Cisco Meraki cloud networking
Go to https://developer.cisco.com/meraki/api-latest/overview/ for API documentation 
API calls used to find values and attributes needed in the different config files can be found there as well.

Custom Cisco Meraki scripts
All scripts are self contained and can be executed on their own as long as all requirements are installed.

Setup
Enable API access in your Meraki dashboard organization and obtain an API key (instructions).

Keep your API key safe and secure, as it is similar to a password for your dashboard. If publishing your Python code to a wider audience, please research secure handling of API keys.

Install the latest version of Python 3.

Install the requests module. pip3 install requests.

Usage
Export your API key as an environment variable, for example: export MERAKI_DASHBOARD_API_KEY=123456789asdfghjklasdasd
Alternatively, define your API key as a variable in your source code; this method is not recommended due to its inherent insecurity.

Update the config.py file with the organization ID and other settings you wish to include/add in the scripts&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And please forgive the bad code... its just something i cobbeld together.&lt;/P&gt;&lt;P&gt;Also, this is for a service now integration. you might need to adjust some of the header settings in the templatesettings.json file.&lt;/P&gt;&lt;P&gt;To run this scrappy code you must get a bit familiar with python. But you should just be able to follow the readme and pile all the files somewhere in the same folder and run it.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 18:38:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402583#M1683</guid>
      <dc:creator>martin-lystad</dc:creator>
      <dc:date>2024-01-24T18:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402584#M1684</link>
      <description>&lt;P&gt;The Community post also says "&lt;SPAN&gt;Note, this is currently an API feature only". Doing some quick testing here I see I can create custom templates without associating them to a specific network. So perhaps it's API only like the comments alludes to and like creation can then only be bound to networks via API calls? Would have to test further.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 18:43:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402584#M1684</guid>
      <dc:creator>Ryan_Miles</dc:creator>
      <dc:date>2024-01-24T18:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402585#M1685</link>
      <description>&lt;P&gt;Many thanks for the example code, i will try that out.&lt;/P&gt;&lt;P&gt;Maybe there should be a note in the dashboard that its currently only networkwide but you can use API instead.&lt;/P&gt;&lt;P&gt;Its absolutly confusing to have the setting in the organization menu, while its network specific.&lt;/P&gt;&lt;P&gt;Related question: if i create a receiver template, how do i use it in network -&amp;gt; alert? There is no field to select it.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 08:22:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402585#M1685</guid>
      <dc:creator>ksumann</dc:creator>
      <dc:date>2024-01-25T08:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402586#M1686</link>
      <description>&lt;P&gt;First you need to configure the https server at the bottom of the alerts page, select your template and save the config. Then you go on the default recipients tab at the top and start typing webhook. Select your https receiver.&lt;/P&gt;&lt;P&gt;The alert settings apply to your template.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 09:50:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402586#M1686</guid>
      <dc:creator>martin-lystad</dc:creator>
      <dc:date>2024-01-25T09:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402587#M1687</link>
      <description>&lt;P&gt;Thanks, this is really weird to use.&lt;BR /&gt;Adding it in Default Reciepients and clicking save will remove it from the default reciepients, but also leaves the webhook section empty. Only after reloading the whole page, the change is visible&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 11:53:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402587#M1687</guid>
      <dc:creator>ksumann</dc:creator>
      <dc:date>2024-01-25T11:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom webhook templates are network specific?</title>
      <link>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402588#M1688</link>
      <description>&lt;P&gt;For anyone stumbling across this post who uses PowerShell, I've created a similar script based on the good work by MartinLL above.&lt;/P&gt;&lt;P&gt;The script is slightly different as it retrieves an existing payload template that you have in the Meraki dashboard and creates a new one based off this that is org-wide. Link to script &lt;A href="https://gist.github.com/Nicholas-Bond/aff345ee3d86abd9b0ae5f7db0ae0dd4" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 18:05:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-networking-platform/custom-webhook-templates-are-network-specific/m-p/5402588#M1688</guid>
      <dc:creator>nickbond</dc:creator>
      <dc:date>2026-01-28T18:05:43Z</dc:date>
    </item>
  </channel>
</rss>

