<?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 Using the API to bulk upload DPSKs from a file! in RUCKUS Self-Help</title>
    <link>https://community.ruckuswireless.com/t5/RUCKUS-Self-Help/Using-the-API-to-bulk-upload-DPSKs-from-a-file/m-p/56645#M114</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;This is a fun Quality of Life Improvement! I love that we have APIs in our applications since it really allows us to make quick changes within applications without having to access a GUI. I use APIs in testing and sometimes I want to load users into our DPSK Pools quickly, for testing. Now, I could do this in GUI, but if I am bulk uploading more than a few, this can be quite lengthy. Let’s do it through the API! We are going to use Postman to upload a CSV file with a username and password entered in it for our users.&lt;/P&gt;&lt;P&gt;We have had questions from customers that have asked for this functionality as well, which we point them to the documentation that is located here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.commscope.com/" target="_blank" rel="noopener"&gt;docs.commscope.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please point them to the RESTful API docs for Cloudpath located on that page.&lt;/P&gt;&lt;P&gt;If you have questions, please refer to that doc, in this QOL page we are going to show you importing a username/passphrase combination from a CSV file.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create API key:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To begin with, let’s create an API key in Cloudpath:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on Configuration | API Keys&lt;/LI&gt;&lt;LI&gt;Click on Add API Key&lt;/LI&gt;&lt;LI&gt;Give it a name and an end date&lt;/LI&gt;&lt;LI&gt;Take note of the API key&lt;/LI&gt;&lt;LI&gt;Click on Save&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_0-1681288551276.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5747i6CB0B5A98504D2CA/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_0-1681288551276.png" alt="Vigneshwar_0-1681288551276.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You need a CSV file, with, at a minimum, a “name” column, and a “passphrase” column. You need to have these two values to create a DPSK.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_1-1681288551287.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5746i931D3AEBCDB94FD2/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_1-1681288551287.png" alt="Vigneshwar_1-1681288551287.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;POSTMAN:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Create a Collection:&lt;BR /&gt;This will contain our API calls for Cloudpath&lt;/P&gt;&lt;P&gt;In Postman, we are going to create a new Collection:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on Collections in the Scratch Pad on the Left&lt;/LI&gt;&lt;LI&gt;Click the + button to create a new collection&lt;/LI&gt;&lt;LI&gt;Name the New Collection for future reference&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Create an Environment:&lt;BR /&gt;This will contain variables for us (such as AUTH token)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;On the top right, you should see “No Environment”, it may appear as a eye behind a piece of paper, click the eye and paper&lt;/LI&gt;&lt;LI&gt;Click on ADD to create a new environment&lt;/LI&gt;&lt;LI&gt;Provide this with a name&lt;/LI&gt;&lt;LI&gt;In the VARIABLE column, enter in the word “token”&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_2-1681288551288.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5748i51E3931181D143A3/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_2-1681288551288.png" alt="Vigneshwar_2-1681288551288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on SAVE&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Create a API call to authenticate using a token:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In your collection, click on Add a request&lt;/LI&gt;&lt;LI&gt;Change to POST call&lt;/LI&gt;&lt;LI&gt;Enter in the URL for the API token, my example:&lt;A href="https://cloudpath.ruckusdemos.net/admin/publicApi/token" target="_blank" rel="noopener"&gt;https://cloudpath.ruckusdemos.net/admin/publicApi/token&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;Click on the Headers tab&lt;/LI&gt;&lt;LI&gt;In the KEY column, enter in “Authorization”&lt;/LI&gt;&lt;LI&gt;In the VALUE column, enter in “{{token}}”&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_3-1681288551289.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5752iC8D8EF63327DC374/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_3-1681288551289.png" alt="Vigneshwar_3-1681288551289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on the Body tab,&lt;/LI&gt;&lt;LI&gt;Change to “raw”&lt;/LI&gt;&lt;LI&gt;Change the language to JSON&lt;/LI&gt;&lt;LI&gt;Enter in your credentials in this format: (once enterd, click on Beatify on the right to align the text)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;{&lt;BR /&gt;“userName”: “username”,&lt;BR /&gt;“password”: “password”&lt;BR /&gt;}&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on the Tests tab; we are going to create a test to auto-fill the “token” variable in Postman for us, then we can re-use this token in subsequent calls. Keep in mind that the token has a very short lifetime (like 5 mins) and has to be renewed before that time limit or created again.&lt;/LI&gt;&lt;LI&gt;In this field, enter in this information:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;const response = pm.response.json();&lt;BR /&gt;pm.environment.set(‘token’, response.token);&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Save&lt;/LI&gt;&lt;LI&gt;Click on SEND!&lt;/LI&gt;&lt;LI&gt;You will now see output down below with a Token a userName, token, serverVersion, and expireDateTime value. Also, if you look on the eye with paper showing the environment variable, the “token” should have a value assigned to it.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Let’s assume a DPKS pool is already created, if not, you can use APIs to create it as well.&lt;/P&gt;&lt;P&gt;Get a DPSK pool GUID to make DPSKs in&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new request in Postman&lt;/LI&gt;&lt;LI&gt;Make it a “Get”&lt;/LI&gt;&lt;LI&gt;Enter in the URL :&amp;nbsp;&lt;A href="https://cloudpath.ruckusdemos.net/admin/publicApi/dpskPools" target="_blank" rel="noopener"&gt;https://cloudpath.ruckusdemos.net/admin/publicApi/dpskPools&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;In the Headers Tab, enter in the Authorization for the KEY and {{token}} for the VALUE&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_4-1681288551291.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5749i99FD80FC7D3F87E7/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_4-1681288551291.png" alt="Vigneshwar_4-1681288551291.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Save&lt;/LI&gt;&lt;LI&gt;If your Token has not expired run it, if it has, re-run your auth request. If your token is expired, you will receive a message stating that.&lt;/LI&gt;&lt;LI&gt;In the Results, look for the guid for your DPSK pool&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_5-1681288551294.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5751iECF21BAC3423037D/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_5-1681288551294.jpeg" alt="Vigneshwar_5-1681288551294.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Now, you know where you want to put the DPSKs (the GUID for that pool), let’s load in our file!&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Create a RUN in Postman:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new POST request&lt;/LI&gt;&lt;LI&gt;Add the URL:&lt;BR /&gt;&lt;A href="https://cloudpath.ruckusdemos.net/admin/publicApi/dpskPools/%E2%80%9DDPSKPoolGUID%E2%80%9D/dpsks" target="_blank" rel="noopener"&gt;https://cloudpath.ruckusdemos.net/admin/publicApi/dpskPools/”DPSKPoolGUID”/dpsks&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;In the Parms tab, enter in two query parameters under KEY, one for name and one for passphrase&lt;/LI&gt;&lt;LI&gt;The VALUE column should be set to {{name}} and {{passphrase}}&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_6-1681288551295.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5754iD7EDCA5D61F968FE/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_6-1681288551295.png" alt="Vigneshwar_6-1681288551295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The name and passphrase will be read from the file headers.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the Headers tab, enter in your Authorization and {{token}} values&lt;/LI&gt;&lt;LI&gt;In the Body tab, enter in the following as JSON:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;{&lt;BR /&gt;“name”: “{{name}}”,&lt;BR /&gt;“passphrase”: “{{passphrase}}”,&lt;BR /&gt;“status”: “ACTIVE”&lt;BR /&gt;}&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on Save&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If you token has expired… get a new one by running the auth call again.&lt;/P&gt;&lt;P&gt;Let’s load a file!&lt;BR /&gt;In Postman we can run a file through a collection and an API call.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on Your Collection on the left.&lt;/LI&gt;&lt;LI&gt;You will see that there is a “Run” button now located beside the “fork and save buttons”, click it&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_7-1681288551295.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5755i864671474DD1300F/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_7-1681288551295.png" alt="Vigneshwar_7-1681288551295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the run order, only select the last API call that you created.&lt;/LI&gt;&lt;LI&gt;On the right, select your CSV file&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_8-1681288551296.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5753i482B2E32C490F678/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_8-1681288551296.png" alt="Vigneshwar_8-1681288551296.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Click “Run” to import the CSV file&lt;/P&gt;&lt;P&gt;If you look in the console of Postman, you will see the result and time taken:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_9-1681288551297.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5757iB47D7A0FAACE73C2/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_9-1681288551297.png" alt="Vigneshwar_9-1681288551297.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In Cloudpath, we should see those entries for the DPSK pool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_10-1681288551298.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5756iD323221B157CCA38/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_10-1681288551298.png" alt="Vigneshwar_10-1681288551298.png" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;A href="https://tektalk.commscope.com/uploads/default/original/3X/b/d/bd970521188fbe91bdbf32f41a966b04912580c3.png" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enjoy!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 08:41:22 GMT</pubDate>
    <dc:creator>Vigneshwar</dc:creator>
    <dc:date>2023-04-12T08:41:22Z</dc:date>
    <item>
      <title>Using the API to bulk upload DPSKs from a file!</title>
      <link>https://community.ruckuswireless.com/t5/RUCKUS-Self-Help/Using-the-API-to-bulk-upload-DPSKs-from-a-file/m-p/56645#M114</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;This is a fun Quality of Life Improvement! I love that we have APIs in our applications since it really allows us to make quick changes within applications without having to access a GUI. I use APIs in testing and sometimes I want to load users into our DPSK Pools quickly, for testing. Now, I could do this in GUI, but if I am bulk uploading more than a few, this can be quite lengthy. Let’s do it through the API! We are going to use Postman to upload a CSV file with a username and password entered in it for our users.&lt;/P&gt;&lt;P&gt;We have had questions from customers that have asked for this functionality as well, which we point them to the documentation that is located here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.commscope.com/" target="_blank" rel="noopener"&gt;docs.commscope.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please point them to the RESTful API docs for Cloudpath located on that page.&lt;/P&gt;&lt;P&gt;If you have questions, please refer to that doc, in this QOL page we are going to show you importing a username/passphrase combination from a CSV file.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create API key:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To begin with, let’s create an API key in Cloudpath:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on Configuration | API Keys&lt;/LI&gt;&lt;LI&gt;Click on Add API Key&lt;/LI&gt;&lt;LI&gt;Give it a name and an end date&lt;/LI&gt;&lt;LI&gt;Take note of the API key&lt;/LI&gt;&lt;LI&gt;Click on Save&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_0-1681288551276.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5747i6CB0B5A98504D2CA/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_0-1681288551276.png" alt="Vigneshwar_0-1681288551276.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You need a CSV file, with, at a minimum, a “name” column, and a “passphrase” column. You need to have these two values to create a DPSK.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_1-1681288551287.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5746i931D3AEBCDB94FD2/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_1-1681288551287.png" alt="Vigneshwar_1-1681288551287.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;POSTMAN:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Create a Collection:&lt;BR /&gt;This will contain our API calls for Cloudpath&lt;/P&gt;&lt;P&gt;In Postman, we are going to create a new Collection:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on Collections in the Scratch Pad on the Left&lt;/LI&gt;&lt;LI&gt;Click the + button to create a new collection&lt;/LI&gt;&lt;LI&gt;Name the New Collection for future reference&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Create an Environment:&lt;BR /&gt;This will contain variables for us (such as AUTH token)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;On the top right, you should see “No Environment”, it may appear as a eye behind a piece of paper, click the eye and paper&lt;/LI&gt;&lt;LI&gt;Click on ADD to create a new environment&lt;/LI&gt;&lt;LI&gt;Provide this with a name&lt;/LI&gt;&lt;LI&gt;In the VARIABLE column, enter in the word “token”&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_2-1681288551288.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5748i51E3931181D143A3/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_2-1681288551288.png" alt="Vigneshwar_2-1681288551288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on SAVE&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Create a API call to authenticate using a token:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In your collection, click on Add a request&lt;/LI&gt;&lt;LI&gt;Change to POST call&lt;/LI&gt;&lt;LI&gt;Enter in the URL for the API token, my example:&lt;A href="https://cloudpath.ruckusdemos.net/admin/publicApi/token" target="_blank" rel="noopener"&gt;https://cloudpath.ruckusdemos.net/admin/publicApi/token&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;Click on the Headers tab&lt;/LI&gt;&lt;LI&gt;In the KEY column, enter in “Authorization”&lt;/LI&gt;&lt;LI&gt;In the VALUE column, enter in “{{token}}”&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_3-1681288551289.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5752iC8D8EF63327DC374/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_3-1681288551289.png" alt="Vigneshwar_3-1681288551289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on the Body tab,&lt;/LI&gt;&lt;LI&gt;Change to “raw”&lt;/LI&gt;&lt;LI&gt;Change the language to JSON&lt;/LI&gt;&lt;LI&gt;Enter in your credentials in this format: (once enterd, click on Beatify on the right to align the text)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;{&lt;BR /&gt;“userName”: “username”,&lt;BR /&gt;“password”: “password”&lt;BR /&gt;}&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on the Tests tab; we are going to create a test to auto-fill the “token” variable in Postman for us, then we can re-use this token in subsequent calls. Keep in mind that the token has a very short lifetime (like 5 mins) and has to be renewed before that time limit or created again.&lt;/LI&gt;&lt;LI&gt;In this field, enter in this information:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;const response = pm.response.json();&lt;BR /&gt;pm.environment.set(‘token’, response.token);&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Save&lt;/LI&gt;&lt;LI&gt;Click on SEND!&lt;/LI&gt;&lt;LI&gt;You will now see output down below with a Token a userName, token, serverVersion, and expireDateTime value. Also, if you look on the eye with paper showing the environment variable, the “token” should have a value assigned to it.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Let’s assume a DPKS pool is already created, if not, you can use APIs to create it as well.&lt;/P&gt;&lt;P&gt;Get a DPSK pool GUID to make DPSKs in&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new request in Postman&lt;/LI&gt;&lt;LI&gt;Make it a “Get”&lt;/LI&gt;&lt;LI&gt;Enter in the URL :&amp;nbsp;&lt;A href="https://cloudpath.ruckusdemos.net/admin/publicApi/dpskPools" target="_blank" rel="noopener"&gt;https://cloudpath.ruckusdemos.net/admin/publicApi/dpskPools&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;In the Headers Tab, enter in the Authorization for the KEY and {{token}} for the VALUE&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_4-1681288551291.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5749i99FD80FC7D3F87E7/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_4-1681288551291.png" alt="Vigneshwar_4-1681288551291.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Save&lt;/LI&gt;&lt;LI&gt;If your Token has not expired run it, if it has, re-run your auth request. If your token is expired, you will receive a message stating that.&lt;/LI&gt;&lt;LI&gt;In the Results, look for the guid for your DPSK pool&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_5-1681288551294.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5751iECF21BAC3423037D/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_5-1681288551294.jpeg" alt="Vigneshwar_5-1681288551294.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Now, you know where you want to put the DPSKs (the GUID for that pool), let’s load in our file!&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Create a RUN in Postman:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new POST request&lt;/LI&gt;&lt;LI&gt;Add the URL:&lt;BR /&gt;&lt;A href="https://cloudpath.ruckusdemos.net/admin/publicApi/dpskPools/%E2%80%9DDPSKPoolGUID%E2%80%9D/dpsks" target="_blank" rel="noopener"&gt;https://cloudpath.ruckusdemos.net/admin/publicApi/dpskPools/”DPSKPoolGUID”/dpsks&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;In the Parms tab, enter in two query parameters under KEY, one for name and one for passphrase&lt;/LI&gt;&lt;LI&gt;The VALUE column should be set to {{name}} and {{passphrase}}&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_6-1681288551295.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5754iD7EDCA5D61F968FE/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_6-1681288551295.png" alt="Vigneshwar_6-1681288551295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The name and passphrase will be read from the file headers.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the Headers tab, enter in your Authorization and {{token}} values&lt;/LI&gt;&lt;LI&gt;In the Body tab, enter in the following as JSON:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;{&lt;BR /&gt;“name”: “{{name}}”,&lt;BR /&gt;“passphrase”: “{{passphrase}}”,&lt;BR /&gt;“status”: “ACTIVE”&lt;BR /&gt;}&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on Save&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If you token has expired… get a new one by running the auth call again.&lt;/P&gt;&lt;P&gt;Let’s load a file!&lt;BR /&gt;In Postman we can run a file through a collection and an API call.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click on Your Collection on the left.&lt;/LI&gt;&lt;LI&gt;You will see that there is a “Run” button now located beside the “fork and save buttons”, click it&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_7-1681288551295.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5755i864671474DD1300F/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_7-1681288551295.png" alt="Vigneshwar_7-1681288551295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the run order, only select the last API call that you created.&lt;/LI&gt;&lt;LI&gt;On the right, select your CSV file&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_8-1681288551296.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5753i482B2E32C490F678/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_8-1681288551296.png" alt="Vigneshwar_8-1681288551296.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Click “Run” to import the CSV file&lt;/P&gt;&lt;P&gt;If you look in the console of Postman, you will see the result and time taken:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_9-1681288551297.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5757iB47D7A0FAACE73C2/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_9-1681288551297.png" alt="Vigneshwar_9-1681288551297.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In Cloudpath, we should see those entries for the DPSK pool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vigneshwar_10-1681288551298.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/5756iD323221B157CCA38/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vigneshwar_10-1681288551298.png" alt="Vigneshwar_10-1681288551298.png" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;A href="https://tektalk.commscope.com/uploads/default/original/3X/b/d/bd970521188fbe91bdbf32f41a966b04912580c3.png" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enjoy!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 08:41:22 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/RUCKUS-Self-Help/Using-the-API-to-bulk-upload-DPSKs-from-a-file/m-p/56645#M114</guid>
      <dc:creator>Vigneshwar</dc:creator>
      <dc:date>2023-04-12T08:41:22Z</dc:date>
    </item>
  </channel>
</rss>

