PUT {{baseUrl}}/collections/{{collectionId}}/requests/{{requestId}}
Updates a request in a collection. For a complete list of properties, see the [Collection Format Request documentation] Note:
12ece9e1-2abf-4edc-8e34-de66e74114d2
), not a collection UID (12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2
), in this endpoint.name
property). The endpoint does not update the entire resource.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
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
} |
ENDPOINTS