{
  "opencollection": "1.0.0",
  "info": {
    "name": "Mend Access Management Library - Organization API",
    "version": "3.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Library - Organization",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Library Notices",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/:libraryUuid/notices",
            "params": [
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              },
              {
                "name": "libraryUuid",
                "value": "",
                "type": "path",
                "description": "library UUID (get a project's library by running Library - Project > Get Project Libraries."
              }
            ]
          },
          "docs": "Returns the text of a library's notice"
        },
        {
          "info": {
            "name": "Set Library Notice",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/:libraryUuid/notices",
            "params": [
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              },
              {
                "name": "libraryUuid",
                "value": "",
                "type": "path",
                "description": "library UUID (get a project's library by running Library - Project > Get Project Libraries."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Edits or adds a custom notice for a given library"
        },
        {
          "info": {
            "name": "Assign Library License",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/:libraryUuid/licenses",
            "params": [
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              },
              {
                "name": "libraryUuid",
                "value": "",
                "type": "path",
                "description": "library UUID (get a project's library by running Library - Project > Get Project Libraries."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds a license reference to a given library"
        },
        {
          "info": {
            "name": "Set Library Copyright",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/:libraryUuid/copyrights",
            "params": [
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              },
              {
                "name": "libraryUuid",
                "value": "",
                "type": "path",
                "description": "library UUID (get a project's library by running Library - Project > Get Project Libraries."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Edits or adds a copyright statement for a given library"
        },
        {
          "info": {
            "name": "Revert Library User Copyrights",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/:libraryUuid/copyrights",
            "params": [
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              },
              {
                "name": "libraryUuid",
                "value": "",
                "type": "path",
                "description": "library UUID (get a project's library by running Library - Project > Get Project Libraries."
              }
            ]
          },
          "docs": "Reverts the copyright statement for a given library to its original text"
        },
        {
          "info": {
            "name": "Get Organization In-House Libraries",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/inHouse",
            "params": [
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Filter your search to return items whose property has a specific value.\nUse the syntax: **property:operation:value** where a colon (:) separates between property, operation and value.\n+ Property: the name of the property of the item\n+ Operation:\n    + **equals** - true if the value is identical to this value.\n    + **like** - true if the property's value is contained within this value\n    + **regex** - true if this regular expression resolves as true.\n        The regex is not case sensitive, and special characters must be escaped with a backslash.\n        Special characters include space, double quote (\"), '<', '>', '#', '%', '{', '}', vertical bar ('|'), backslash, '^'.\n        To pass an escaped character in a URL in Postman, encode it first.\n        E.g. to return all items whose value begins with **a** or **A**, use regex:^a\n+ Value: the value of the property.\n\nTo combine multiple filters, separate each filter with a semicolon with no space. E.g.  property1:operation1:value1;property2:operation2:value2\n\nThis endpoint supports filtering on this property:\n+ name:[like | equals | regex]:value\n+ type:[like | equals ]:value\n+ comment:[like | equals | regex]:value\n+ markType:[equals]:value\n"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Sort search results alphabetically on an item's property by entering **sort=** followed by the property name.\nE.g. enter **sort=email** to sort alphabetically by their email addresses from a-z ascending.To sort in descending order (z-a), add a minus sign ('-'). E.g. **sort=-email**.\n\nYou can sort by the following properties:\n+ name\n+ type\n+ comment\n+ markType\n"
              },
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              }
            ]
          },
          "docs": "Retrieves all libraries in an organization that have been marked as In-House"
        },
        {
          "info": {
            "name": "Mark/Unmark Library As In-House",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/inHouse",
            "params": [
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Marks/unmarks a single library in an organization as In-House"
        },
        {
          "info": {
            "name": "Get Library Version Vulnerability Trends",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/:libraryUuid/vulnerabilityTrends",
            "params": [
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              },
              {
                "name": "libraryUuid",
                "value": "",
                "type": "path",
                "description": "library UUID (get a project's library by running Library - Project > Get Project Libraries."
              },
              {
                "name": "startVersion",
                "value": "",
                "type": "query"
              },
              {
                "name": "before",
                "value": "",
                "type": "query"
              },
              {
                "name": "after",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns the trend of the number of vulnerabilities in a library over past versions.\nDefine the scope of the trend with the parameters 'before' denoting the number of versions before the current version, and 'after'.\nDoes not support generic library types like Debian, RPM and Ruby"
        },
        {
          "info": {
            "name": "Get Library Versions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/:libraryUuid/versions",
            "params": [
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              },
              {
                "name": "libraryUuid",
                "value": "",
                "type": "path",
                "description": "library UUID (get a project's library by running Library - Project > Get Project Libraries."
              },
              {
                "name": "removeUnstableVersions",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a list of a library's versions"
        },
        {
          "info": {
            "name": "Get Library Projects In Organization",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/:libraryUuid/projects",
            "params": [
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              },
              {
                "name": "libraryUuid",
                "value": "",
                "type": "path",
                "description": "library UUID (get a project's library by running Library - Project > Get Project Libraries."
              }
            ]
          },
          "docs": "Returns a list of an organization's projects that contain a particular library"
        },
        {
          "info": {
            "name": "Get Library Details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/:libraryUuid",
            "params": [
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              },
              {
                "name": "libraryUuid",
                "value": "",
                "type": "path"
              },
              {
                "name": "ignoreManualData",
                "value": "",
                "type": "query",
                "description": "requestParameter called ignoreManualData, default value is false. In case the parameter is true, ignore manual changes of the user on the library"
              }
            ]
          },
          "docs": "Returns a single library's details"
        },
        {
          "info": {
            "name": "Remove Library License References",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/:libraryUuid/licenses/:licenseUuid",
            "params": [
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              },
              {
                "name": "libraryUuid",
                "value": "",
                "type": "path",
                "description": "library UUID (get a project's library by running Library - Project > Get Project Libraries."
              },
              {
                "name": "licenseUuid",
                "value": "",
                "type": "path",
                "description": "license UUID to remove"
              }
            ]
          },
          "docs": "Removes the license reference from a library"
        },
        {
          "info": {
            "name": "Revert Library User Licenses",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://baseUrl/api/v2.0/orgs/:orgToken/libraries/:libraryUuid/licenses/revert",
            "params": [
              {
                "name": "orgToken",
                "value": "",
                "type": "path",
                "description": "org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: **Integrate** tab > **API Key**)."
              },
              {
                "name": "libraryUuid",
                "value": "",
                "type": "path",
                "description": "library UUID (get a project's library by running Library - Project > Get Project Libraries."
              }
            ]
          },
          "docs": "Reverts the license for a given library to its original state"
        }
      ]
    }
  ],
  "bundled": true
}