cancel
Showing results for 
Search instead for 
Did you mean: 

Bulk Add Custom Variables to sites within XIQ-SE/XMC

Bulk Add Custom Variables to sites within XIQ-SE/XMC

Configterminal
Contributor

Hello, I am attempting to bulk add a ton of custom site variables to XIQ SE for the purposes of ZTP+ at 70 site locations that all require different ISID associations etc.  Is there a way to do this easily via the exposed NBI or otherwise?  I can't seem to get the query sorted out and am at my whits end.  

1 ACCEPTED SOLUTION

Ludovico_Steven
Extreme Employee

This works...

Ludovico_Steven_0-1715606144688.png

mutation {
  network {
    modifySite(input: {
      siteLocation: "/World/CTC"
      siteConfig: {
        customVariablesConfig: {
          mutationType: ADD
          customVariables: [{
            name: "myVar"
            valueType: STRING
            scopeCategory: SITE
            value: "12345"
          }]
        }
      }
    }) {
      message
      status
    }
  }
}

And I get:

Ludovico_Steven_1-1715606214686.png

 

 

 

View solution in original post

2 REPLIES 2

Ludovico_Steven
Extreme Employee

This works...

Ludovico_Steven_0-1715606144688.png

mutation {
  network {
    modifySite(input: {
      siteLocation: "/World/CTC"
      siteConfig: {
        customVariablesConfig: {
          mutationType: ADD
          customVariables: [{
            name: "myVar"
            valueType: STRING
            scopeCategory: SITE
            value: "12345"
          }]
        }
      }
    }) {
      message
      status
    }
  }
}

And I get:

Ludovico_Steven_1-1715606214686.png

 

 

 

You are the man!  Thank you sir, 

GTM-P2G8KFN