{
  "opencollection": "1.0.0",
  "info": {
    "name": "Downloads About Asset Attributes API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Asset Attributes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List attributes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/assets/attributes"
          },
          "docs": "Returns a list of custom asset attributes.\n\n**Note:** A container can have a maximum of 10 custom asset attributes. <div class=\"perms-callout\">Requires the Basic [16] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Create attribute",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/assets/attributes",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new custom asset attribute. <div class=\"perms-callout\">Requires the Administrator [64] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Update attribute",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/assets/attributes/:attribute_id",
            "params": [
              {
                "name": "attribute_id",
                "value": "116af8c3-969d-4621-9f9f-364eeb58e3a7",
                "type": "path",
                "description": "The ID of the custom attribute that you want to update."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the specified custom asset attribute.\n\n**Note:** You can only update non-key attributes like `description`. <div class=\"perms-callout\">Requires the Administrator [64] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Delete attribute",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/assets/attributes/:attribute_id",
            "params": [
              {
                "name": "attribute_id",
                "value": "",
                "type": "path",
                "description": "The ID of the custom asset attribute that you want to delete."
              }
            ]
          },
          "docs": "Deletes the specified custom asset attribute and removes it from all assets that it's assigned to. <div class=\"perms-callout\">Requires the Administrator [64] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "List attributes assigned to asset",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/assets/:asset_id/attributes",
            "params": [
              {
                "name": "asset_id",
                "value": "",
                "type": "path",
                "description": "The ID of the asset you want to list custom asset attributes for."
              }
            ]
          },
          "docs": "Returns a list of custom asset attributes assigned to the specified asset.\n\n**Note:** A container can have a maximum of 10 custom attributes. <div class=\"perms-callout\">Requires the Basic [16] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Assign attributes to asset",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/assets/:asset_id/attributes",
            "params": [
              {
                "name": "asset_id",
                "value": "",
                "type": "path",
                "description": "The ID of the asset for which you want to assign custom asset attributes."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Assigns custom asset attributes to the specified asset. <div class=\"perms-callout\">Requires the Basic [16] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Delete attributes from asset",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/assets/:asset_id/attributes",
            "params": [
              {
                "name": "asset_id",
                "value": "",
                "type": "path",
                "description": "The ID of the asset for which you want to remove all custom attributes."
              }
            ]
          },
          "docs": "Deletes all custom asset attributes assigned to the specified asset. <div class=\"perms-callout\">Requires the Basic [16] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Assign single attribute to asset",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/assets/:asset_id/attributes/:attribute_id",
            "params": [
              {
                "name": "asset_id",
                "value": "",
                "type": "path",
                "description": "The ID of the asset for which you want to assign a single custom asset attribute."
              },
              {
                "name": "attribute_id",
                "value": "",
                "type": "path",
                "description": "The ID of the custom asset attribute you want to assign to the asset."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Assigns a single custom asset attribute to the specified asset. <div class=\"perms-callout\">Requires the Basic [16] user role. See [Roles](doc:roles).</div>"
        },
        {
          "info": {
            "name": "Delete attribute from asset",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://www.tenable.com/downloads/api/v2/api/v3/assets/:asset_id/attributes/:attribute_id",
            "params": [
              {
                "name": "asset_id",
                "value": "",
                "type": "path",
                "description": "The ID of the asset for which you want to remove a single custom asset attribute."
              },
              {
                "name": "attribute_id",
                "value": "",
                "type": "path",
                "description": "The ID of the custom asset attribute that you want to remove from the asset."
              }
            ]
          },
          "docs": "Deletes a single custom asset attribute from the specified asset. <div class=\"perms-callout\">Requires the Basic [16] user role. See [Roles](doc:roles).</div>"
        }
      ]
    }
  ],
  "bundled": true
}