updateCollectionRequest
Update specific properties of a request in a Postman collection without changing its folder. Modify name, method, URL, headers, query params, body, auth, or events.
Instructions
Updates a request in a collection. For a complete list of properties, refer to the Request entry in the Postman Collection Format documentation.
Note:
You must pass a collection ID (`12ece9e1-2abf-4edc-8e34-de66e74114d2`), not a collection(`12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2`), in this endpoint.
This endpoint does not support changing the folder of a request.
This endpoint acts like a PATCH method. It only updates the values that you pass in the request body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requestId | Yes | The request's ID. | |
| collectionId | Yes | The collection's ID. | |
| name | No | The request's 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. |