---
title: Get Licence Capacities
slug: kron-pam-api-collection-3-7-0/get-licence-capacities
docTags: 
createdAt: 2025-05-08T12:58:23.519Z
---

{
  "id": "q-LPRBY6af9uuPaqzp2Ed",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "{{url}}/aioc-rest-web/rest/Multitenancy/getLicenceCapacities",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>This request is used to get the remaining capacity of the system license. The request body typically includes parameters that identify the license or system for which the capacity details are required. The body is formatted as a JSON object with key-value pairs.</p>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "description": "",
          "default": "{{csrftoken}}",
          "value": "{{csrftoken}}",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "QaQrgB2DYHznnVC3G4jI3",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/Multitenancy/getLicenceCapacities \\\n     --header 'accept: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}'"
        },
        {
          "id": "wgqQIEy_Wb_KLuioFqDSA",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-xsrf-token\", \"{{csrftoken}}\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/Multitenancy/getLicenceCapacities\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "4Nfg06toGIPm4H9mT6q1M",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/Multitenancy/getLicenceCapacities\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-xsrf-token\"] = \"{{csrftoken}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "-R9KENKJGecN_oEGgShZy",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/Multitenancy/getLicenceCapacities\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "QaQrgB2DYHznnVC3G4jI3"
    },
    "results": {
      "languages": [
        {
          "id": "8-zLfU9hkeCdYjhAnUfQL",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "8-zLfU9hkeCdYjhAnUfQL"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}