I want to import a script into a collection

I want to import a script into a collection. But I import script, I get an error. What is the reason?

Hey @kywonp,

Welcome to the Community :star:

The Import feature only accepts specific formats:

Import a Postman Collection, Environment, data dump, curl command, or a RAML / WADL / Open API (1.0/2.0/3.0) / GraphQL Schema / Runscope file.

Importing scripts in this way is not possible. Pasting the code into either the Collection, Folder or Request level sandbox would work though. :slight_smile: