ITADN

Way to update GraphQL Body and Variables by using "Update a request" API

#14127Openhyomee2 创建于 2026-05-11
feature
H
hyomee2commented
### Is there an existing request for this feature? - [x] I have searched the existing issues for this feature request and I know that duplicates will be closed ### Is your feature request related to a problem? Hello, I want to update the body > GraphQL QUERY and GRAPHQL VARIABLES of a Postman http request using your API `PUT /collections/:collectionId/requests/:requestId `. (https://www.postman.com/postman/postman-public-workspace/request/vm9t0g6/update-a-request?tab=body) I was able to update the **body > raw**, but I couldn't find any documentation or examples showing how to update Body > grapqhql QUERY and GRAPHQL VARIABLES . Is there a way to update them? <img width="922" height="290" alt="Image" src="https://github.com/user-attachments/assets/dbdbccd4-7619-4e64-b087-fe0fd701f0c3" /> I already tried a request like the one below, and I can update fields like name and dataMode, but not the graphql query or variables. ``` { "name": "POST request", "dataMode": "graphql", "data": "{\"query\": \"mutation createPost($input: PostInput!) {\n createProjectPost(input: $input) {\\n id\\n }\\n}\", \"variables\": \"{\\n \\\"input\\\": {\\n \\\"type\\\": \\\"NOTICE\\\",\\n \\\"title\\\": \\\"\\\",\\n \\\"content\\\": \\\"Hi\\\"\\n }\\n}\"}", "description": "This is an example request.", "headers": "Content-Type: application/json\n", "method": "POST", "url": "https://postman-echo.com/user/:id?active={{boolean}}", "protocolProfileBehavior": { "disableBodyPruning": true } } ``` ### Describe the solution you'd like Please make the way to update **Body > GraphQL** QUERY and GRAPHQL VARIABLES by using API PUT /collections/:collectionId/requests/:requestId ### Describe alternatives you've considered _No response_ ### Additional context _No response_
0 条评论