Import policy

Imports an existing policy (scan template) that was uploaded using the POST /file/upload endpoint. Only policies (scan templates) in .nessus format can be imported.

Note: Policies are referred to as scan templates in the user interface. The term policy is only used by the API. The two terms refer to the same feature.

Requires the Standard [32] user role. See Roles.

Body Params
string
required

The name of the file to import as provided by the response from file-upload.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

403

Returned if you do not have the required permissions to import the policy (scan template).

Language
Credentials
Header
Request
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/html