Update a request
PUT {{baseUrl}}/collections/{{collectionId}}/requests/{{requestId}}
Updates a request in a collection. For a complete list of properties, refer to the Request entry in the [Qodex Collection Format documentation]
Note:
You must pass a collection ID (
12ece9e1-2abf-4edc-8e34-de66e74114d2
), not a collection UID (12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2
), in this endpoint.This endpoint acts like a PATCH method. It only updates the values that you pass in the request body (for example, the
name
property). The endpoint does not update the entire resource.This endpoint does not support changing the folder of a request.
Request Body
{"name"=>"{{requestName}}", "method"=>"{{requestMethod}}"}
RESPONSES
status: OK
{"model_id":"c82dd02c-4870-4907-8fcb-593a876cf05b","meta":{"model":"request","action":"update"},"data":{"id":"c82dd02c-4870-4907-8fcb-593a876cf05b","name":"Example POST Request","dataMode":"params","data":[{"enabled":true,"value":"3f14c9c7-e71c-4094-b90e-ac9edb232c2e","type":"text","key":"id"},{"enabled":true,"value":"12ece9e1-2abf-4edc-8e34-de66e74114d2","type":"text","key":"collection"}],"auth":null,"events":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);"]}}],"rawModeData":"{\n \"field\": \"Value\"\n}","descriptionFormat":null,"description":"This is an example POST request.","variables":null,"headers":"","method":"POST","pathVariables":{},"url":"https://postman-echo.com/post","preRequestScript":null,"tests":"var data = JSON.parse(responseBody);","currentHelper":null,"helperAttributes":null,"queryParams":[],"headerData":[],"pathVariableData":[],"protocolProfileBehavior":null,"dataDisabled":false,"responses_order":[],"createdAt":"2022-08-29T16:49:19.964Z","updatedAt":"2022-08-29T16:49:19.964Z","owner":"12345678","lastUpdatedBy":"12345678","lastRevision":24994863800,"folder":null,"collection":"12ece9e1-2abf-4edc-8e34-de66e74114d2","dataOptions":{"raw":{"language":"json"}}},"revision":24994954828}