Update a collection request
updateCollectionRequestUpdate an existing request in a Postman collection by modifying its URL, method, headers, body, auth, or scripts with a PATCH-style operation.
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.
Events (`events`). Events are merged by `listen` type, so you only need to send the event you are changing. A `listen` type you omit keeps its stored script. To empty a script, send its event with `script.exec` set to `[]` — sending `events: []` changes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The request's URL. | |
| auth | No | The request's authorization settings. | |
| data | No | The request body's form or urlencoded data. | |
| name | No | The request's name. | |
| events | No | A list of scripts configured to run when specific events occur. Merged by `listen` type: send only the event you are changing, and any `listen` type you omit keeps its stored script. To empty a script, send its event with `script.exec` set to `[]`; sending an empty array changes nothing. | |
| method | No | The request's HTTP method. | |
| dataMode | No | The request body's data mode. | |
| requestId | Yes | The request's ID. | |
| headerData | No | The request's headers. | |
| dataOptions | No | Additional options for the request body data. | |
| description | No | The request's description. | |
| queryParams | No | The request's query parameters. | |
| rawModeData | No | The request body's raw mode data. | |
| collectionId | Yes | The collection's ID. | |
| graphqlModeData | No | The request body's GraphQL mode data. |