<?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: Meraki API Create Device Live Tools Throughput Test 404 Error in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/meraki-api-create-device-live-tools-throughput-test-404-error/m-p/5413727#M2400</link>
    <description>&lt;P&gt;I have also tried the following in a script I am working on  :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;import requests&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;import json&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;url = "&lt;A href="https://api.meraki.com/api/v1/devices/XXXX-XXXX-XXXX/liveTools/throughputTest" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/devices/XXXX-XXXX-XXXX/liveTools/throughputTest&lt;/A&gt;"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;payload = '''{&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"callback": {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"payloadTemplate": { "id": "wpt_2100" },&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"url": "&lt;A href="https://webhook.site/0a7dc1fb-4029-4f18-8486-f489aab3f457" target="_blank" rel="nofollow noopener noreferrer"&gt;https://webhook.site/0a7dc1fb-4029-4f18-8486-f489aab3f457&lt;/A&gt;",&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"sharedSecret": "test123"&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;}'''&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;headers = {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"Authorization": "Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXX55b1",&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"Content-Type": "application/json",&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"Accept": "application/json"&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;response = requests.request('POST', url, headers=headers, data = payload)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;print(response.text.encode('utf8'))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This just returns a b'' response and nothing is reported to our WebHooks Server&lt;/P&gt;&lt;P&gt;If anyone could lead me in the right direction would be much appreciated&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 00:14:54 GMT</pubDate>
    <dc:creator>Jamie Chau</dc:creator>
    <dc:date>2024-03-26T00:14:54Z</dc:date>
    <item>
      <title>Meraki API Create Device Live Tools Throughput Test 404 Error</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-create-device-live-tools-throughput-test-404-error/m-p/5413726#M2399</link>
      <description>&lt;P&gt;Good Afternoon;&lt;/P&gt;&lt;P&gt;I am following through Meraki's Documentation concerning the Create Device Live Tools Throughput Test VIA API Using the following commands - &lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;EM&gt;import meraki&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;EM&gt;API_KEY = 'XXXXa55b1'&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;EM&gt;dashboard = meraki.DashboardAPI(API_KEY)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;EM&gt;serial = 'XXXX-XXXX-XXXX'&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;EM&gt;response = dashboard.devices.createDeviceLiveToolsThroughputTest(&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;&lt;EM&gt;serial, &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;&lt;EM&gt;callback={'url': '&lt;A href="https://webhook.site/0a7dc1fb-4029-4f18-8486-f489aab3f457" target="_blank" rel="nofollow noopener noreferrer"&gt;https://webhook.site/0a7dc1fb-4029-4f18-8486-f489aab3f457&lt;/A&gt;', 'sharedSecret': 'xxxx' , 'payloadTemplate': {'id': 'wpt_2100'}}&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;EM&gt;print(response)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;However when we run the command we are constantly receive a 404 error. I am not a programmer myself so my python knowledge is limited.&lt;/P&gt;&lt;P&gt;From everything I see following through the documentation this should be working however am stuck. Does anyone see any issues with my syntax, or coding for this API request?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 22:02:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-create-device-live-tools-throughput-test-404-error/m-p/5413726#M2399</guid>
      <dc:creator>Jamie Chau</dc:creator>
      <dc:date>2024-03-25T22:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki API Create Device Live Tools Throughput Test 404 Error</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-create-device-live-tools-throughput-test-404-error/m-p/5413727#M2400</link>
      <description>&lt;P&gt;I have also tried the following in a script I am working on  :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;import requests&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;import json&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;url = "&lt;A href="https://api.meraki.com/api/v1/devices/XXXX-XXXX-XXXX/liveTools/throughputTest" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/devices/XXXX-XXXX-XXXX/liveTools/throughputTest&lt;/A&gt;"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;payload = '''{&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"callback": {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"payloadTemplate": { "id": "wpt_2100" },&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"url": "&lt;A href="https://webhook.site/0a7dc1fb-4029-4f18-8486-f489aab3f457" target="_blank" rel="nofollow noopener noreferrer"&gt;https://webhook.site/0a7dc1fb-4029-4f18-8486-f489aab3f457&lt;/A&gt;",&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"sharedSecret": "test123"&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;}'''&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;headers = {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"Authorization": "Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXX55b1",&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"Content-Type": "application/json",&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"Accept": "application/json"&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;response = requests.request('POST', url, headers=headers, data = payload)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;print(response.text.encode('utf8'))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This just returns a b'' response and nothing is reported to our WebHooks Server&lt;/P&gt;&lt;P&gt;If anyone could lead me in the right direction would be much appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 00:14:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-create-device-live-tools-throughput-test-404-error/m-p/5413727#M2400</guid>
      <dc:creator>Jamie Chau</dc:creator>
      <dc:date>2024-03-26T00:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki API Create Device Live Tools Throughput Test 404 Error</title>
      <link>https://community.cisco.com/t5/network-platform-api/meraki-api-create-device-live-tools-throughput-test-404-error/m-p/5413728#M2401</link>
      <description>&lt;P&gt;I have updated my code and am now receiving - Error: 400 Client Error: Bad Request for url: &lt;A href="https://api.meraki.com/api/v1/devices/Q2KY-SY6P-MQCY/liveTools/throughputTest" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/devices/Q2KY-SY6P-MQCY/liveTools/throughputTest&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 00:43:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/meraki-api-create-device-live-tools-throughput-test-404-error/m-p/5413728#M2401</guid>
      <dc:creator>Jamie Chau</dc:creator>
      <dc:date>2024-03-26T00:43:24Z</dc:date>
    </item>
  </channel>
</rss>

