createCollectionRequest
Create a new HTTP request in a Postman collection or folder, specifying method, URL, headers, body, and authentication settings.
Instructions
Creates a request in a collection. For a complete list of properties, refer to the Request entry in the Postman Collection Format documentation.
Note:
It is recommended that you pass the `name` property in the request body. If you do not, the system uses a null value. As a result, this creates a request with a blank name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collectionId | Yes | The collection's ID. | |
| folderId | No | The folder ID in which to create the request. By default, the system will create the request at the collection level. | |
| name | No | The request's name. It is recommended that you pass the `name` property in the request body. If you do not, the system uses a null value. As a result, this creates a request with a blank name. | |
| description | No | The request's description. | |
| method | No | The request's HTTP method. | |
| url | No | The request's URL. | |
| headerData | No | The request's headers. | |
| queryParams | No | The request's query parameters. | |
| dataMode | No | The request body's data mode. | |
| data | No | The request body's form data. | |
| rawModeData | No | The request body's raw mode data. | |
| graphqlModeData | No | The request body's GraphQL mode data. | |
| dataOptions | No | Additional configurations and options set for the request body's various data modes. | |
| auth | No | The request's authentication information. | |
| events | No | A list of scripts configured to run when specific events occur. |