Forum Discussion

SR's avatar
SR
Icon for Joining the Conversation rankJoining the Conversation
1 month ago
Solved

How to get license id ?

Hi, I want to use the assignSiteBwLicense mutation to automate site licensing, but I cannot find the correct licenseId to pass in the input. Mutation I want to use: mutation assignSiteBwLicense($a...
  • FinnCato's avatar
    1 month ago

    You can normally use a licensingInfo query to retrieve the ID of the pool licence. I say normally because depending on your accounts configuration licence application via API may not be possible if it contains certain regional licences.

    query licensingInfo($accountId: ID!) {
      licensing(accountId: $accountId) {
        licensingInfo {
          pooledBandwidth {
            id
            sku
            plan
            status
            expirationDate
            startDate
            total
            siteLicenseGroup
            siteLicenseType
          }
        }
      }
    }