{
  "opencollection": "1.0.0",
  "info": {
    "name": "Business Central Administration Center Accounts Extensions API",
    "version": "2.28"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Extensions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Extensions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.businesscentral.dynamics.com/admin/v2.28/companies(:company_id)/extensions",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the company"
              }
            ]
          },
          "docs": "Returns a list of extensions published to the tenant."
        },
        {
          "info": {
            "name": "Install an Extension",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.businesscentral.dynamics.com/admin/v2.28/companies(:company_id)/extensions(:extension_id)/Microsoft.NAV.install",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the company"
              },
              {
                "name": "extension_id",
                "value": "",
                "type": "path",
                "description": "The package ID of the extension"
              }
            ]
          },
          "docs": "Installs a published extension on the tenant."
        },
        {
          "info": {
            "name": "Uninstall an Extension",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.businesscentral.dynamics.com/admin/v2.28/companies(:company_id)/extensions(:extension_id)/Microsoft.NAV.uninstall",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the company"
              },
              {
                "name": "extension_id",
                "value": "",
                "type": "path",
                "description": "The package ID of the extension"
              }
            ]
          },
          "docs": "Uninstalls an extension from the tenant."
        },
        {
          "info": {
            "name": "Uninstall and Delete Extension Data",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.businesscentral.dynamics.com/admin/v2.28/companies(:company_id)/extensions(:extension_id)/Microsoft.NAV.uninstallAndDeleteExtensionData",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the company"
              },
              {
                "name": "extension_id",
                "value": "",
                "type": "path",
                "description": "The package ID of the extension"
              }
            ]
          },
          "docs": "Uninstalls an extension and deletes all data owned by the extension. This action cannot be undone."
        },
        {
          "info": {
            "name": "Unpublish an Extension",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.businesscentral.dynamics.com/admin/v2.28/companies(:company_id)/extensions(:extension_id)/Microsoft.NAV.unpublish",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the company"
              },
              {
                "name": "extension_id",
                "value": "",
                "type": "path",
                "description": "The package ID of the extension"
              }
            ]
          },
          "docs": "Unpublishes an uninstalled extension from the tenant."
        }
      ]
    }
  ],
  "bundled": true
}