{
  "opencollection": "1.0.0",
  "info": {
    "name": "Sonatype Lifecycle Public REST Advanced Search License Overrides API",
    "version": "1.201.0-02"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "License Overrides",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "getAppliedLicenseOverrides",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v2/licenseOverrides/:ownerType/:ownerId",
            "params": [
              {
                "name": "ownerType",
                "value": "",
                "type": "path",
                "description": "Select the `ownerType` for which you want to retrieve the applied license overrides."
              },
              {
                "name": "ownerId",
                "value": "",
                "type": "path",
                "description": "Enter the id of the application, organization or the repository."
              },
              {
                "name": "componentIdentifier",
                "value": "",
                "type": "query",
                "description": "Enter the componentIdentifier consisting of format and coordinates as a JSON e.g., `?componentIdentifier={\"format\":\"maven\",\"coordinates\":\"{...}}\"}"
              }
            ]
          },
          "docs": "Use this method to retrieve the applied license overrides for a component.\n\nPermissions required: View IQ Elements"
        },
        {
          "info": {
            "name": "addLicenseOverride",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v2/licenseOverrides/:ownerType/:ownerId",
            "params": [
              {
                "name": "ownerType",
                "value": "",
                "type": "path",
                "description": "Select the `ownerType` scope for which you want to add or update a license override"
              },
              {
                "name": "ownerId",
                "value": "",
                "type": "path",
                "description": "Enter the id of the application, organization or the repository."
              },
              {
                "name": "where",
                "value": "",
                "type": "query"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Use this method to add or update a license override to a component for a given owner scope.\n\nPermissions required: Change Licenses"
        },
        {
          "info": {
            "name": "getAppliedLicenseOverridesForLegalReviewer",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v2/licenseOverrides/:ownerType/:ownerId/legalReviewer",
            "params": [
              {
                "name": "ownerType",
                "value": "",
                "type": "path",
                "description": "Select the `ownerType` for which you want to retrieve the applied license overrides."
              },
              {
                "name": "ownerId",
                "value": "",
                "type": "path",
                "description": "Enter the id of the owner."
              },
              {
                "name": "componentIdentifier",
                "value": "",
                "type": "query",
                "description": "Enter the component format and coordinates."
              }
            ]
          },
          "docs": "Use this method to retrieve the applied license overrides for a given component and owner.\n\nPermissions required: Review Legal Obligations For Components Licenses"
        },
        {
          "info": {
            "name": "deleteLicenseOverride",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/v2/licenseOverrides/:ownerType/:ownerId/:licenseOverrideId",
            "params": [
              {
                "name": "ownerType",
                "value": "",
                "type": "path",
                "description": "Select the `ownerType` scope for which you want to delete license override"
              },
              {
                "name": "ownerId",
                "value": "",
                "type": "path",
                "description": "Enter the id of the application, organization or the repository."
              },
              {
                "name": "licenseOverrideId",
                "value": "",
                "type": "path",
                "description": "Enter the id of the license override you want to delete."
              },
              {
                "name": "where",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Use this method to delete a license override for a component.\n\nPermissions required: Change Licenses"
        }
      ]
    }
  ],
  "bundled": true
}