---
title: "Add a new subscription to the store"
method: POST
path: "/smartfolder/create"
tags: ["Subscriptions"]
---

# Add a new subscription to the store

`POST /smartfolder/create`

## Request

- Base URL: `https://asm.cloud.tenable.com/api/1.0`
- URL: `https://asm.cloud.tenable.com/api/1.0/smartfolder/create`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/tenable/apis/attack-surface-management/docs/smartfolder/create/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `template_id` integer
  - `name` string, required
  - `currentAssetCount` integer, required
  - `filters` FilterItem[], required: Filters to be applied on assets, consists of FilterItem objects.
    - `column` string: The property to filter on. You can use the [List Asset Properties](ref:getavailablecolumns) endpoint to get a list of possible values.
    - `type` string: The type of filter to apply. Refer to [Robust Filtering](https://docs.tenable.com/attack-surface-management/Content/Topics/Inventory/AssetFilters.htm#Robust_Filtering) for a list of possible filter types.
    - `value` string: The value to filter on. For date-time values, please use the ISO format. For example: "2024-10-21T10:00:00.000Z".
  - `extra` object
    - `columns` string[], required
    - `view` string, required
    - `groupByType` 'id' | 'bd.original_hostname' | 'bd.ip_address'
    - `details` string
    - `exploit_cost` number
    - `fix_cost` number
    - `exploit_likelihood` number
    - `exploitation_duration` number
    - `severity` 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW' | 'INFO'

## Response `200`

OK

- object
  - `id` integer
  - `name` string

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/tenable/apis/attack-surface-management.md) - [All operations](https://skmtc.dev/tenable/apis/attack-surface-management/llms.txt) - [OpenAPI document](https://skmtc.dev/tenable/apis/attack-surface-management/revisions/465c06285e48?raw)
