Learn to modify GraphQL API requests and responses using Requestly Interceptor to debug and test GraphQL APIs.
Unlike REST APIs, GraphQL APIs provide a flexible approach to querying and mutating data through a single endpoint. They allow clients to specify exactly what data is needed, reducing over-fetching and under-fetching issues common with REST APIs. GraphQL APIs can be modified to customize requests and responses for testing and debugging. This guide provides detailed steps to achieve this using Requestly Interceptor.
In GraphQL, client interactions are typically managed through a single HTTP endpoint. The specific operation to execute is often indicated by the operationName field in the request payload.Example Request
POST <https://www.example.com/graphqlapi>{ "operationName": "getUsers", "query": ` query getUsers { users { id email } } `}
Navigate to the HTTP Rules tab in the web or desktop app.
2
Create a New Rule
Click on ”+ New Rule” and select Modify Request Body.
3
Configure Resource Type
Choose “GraphQL API” as the Resource Type.
4
Set GraphQL Operation Filter
In the GraphQL Operation (Request Payload Filter) section:
Enter Key as operationName.
Enter Value as the operation name you want to target (e.g., getUsers).
5
Customize Request
Define the new Request you want to serve for the specified operation
6
Save and Activate
Click Save to store the rule and toggle it ON to apply the changes
7
Test the Rule
Validate the rule by sending a request matching your conditions and verifying the modified response.
For additional details, visit the Modify Request Rule Page.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Requestly HTTP Interceptor","description":"Inspect, modify, mock \u0026 debug HTTP requests with Requestly's HTTP Interceptor — proxy-grade interception for browsers, desktop apps, mobile devices, and terminals.","colors":{"primary":"#2563eb","light":"#3b82f6","dark":"#1d4ed8"},"logo":{"light":"https://mintcdn.com/interceptor/fhZRboFseopn8ocm/images/logo-light.webp?fit=max\u0026auto=format\u0026n=fhZRboFseopn8ocm\u0026q=85\u0026s=f0fa5759c6065f7c53a6eb9829cf5004","dark":"https://mintcdn.com/interceptor/fhZRboFseopn8ocm/images/logo-dark.webp?fit=max\u0026auto=format\u0026n=fhZRboFseopn8ocm\u0026q=85\u0026s=91f987e18a77910069ee987bdbfc5d08","href":"https://interceptor-docs.requestly.com"},"favicon":"https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/favicon.webp?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=d9e4c6f14d3fcb63f7952f3134e40299","navbar":{"primary":{"type":"button","label":"Download","href":"https://requestly.com/downloads"}},"footer":{"socials":{"x":"https://x.com/requestlyio","linkedin":"https://linkedin.com/company/requestly","github":"https://github.com/requestly/requestly","youtube":"https://youtube.com/@requestly"},"links":[{"header":"Product","items":[{"label":"API Client Docs","href":"https://docs.requestly.com"},{"label":"Features","href":"https://requestly.com"},{"label":"Pricing","href":"https://app.requestly.io/pricing"},{"label":"Desktop App","href":"https://requestly.com/desktop"}]},{"header":"Resources","items":[{"label":"Blog","href":"https://requestly.com/blog"},{"label":"Support","href":"https://requestly.com/contact-us"},{"label":"Changelog","href":"https://docs.requestly.com/changelogs"},{"label":"GitHub","href":"https://github.com/requestly/requestly"}]},{"header":"Company","items":[{"label":"About","href":"https://www.browserstack.com/company"},{"label":"Privacy Policy","href":"https://requestly.com/privacy"},{"label":"Terms of Service","href":"https://requestly.com/terms"}]}]},"search":{"prompt":"Search HTTP Interceptor docs..."},"seo":{"metatags":{"og:type":"documentation","og:site_name":"Requestly HTTP Interceptor Documentation","twitter:card":"summary_large_image","twitter:site":"@requestlyio"},"indexing":"navigable"},"integrations":{"amplitude":{"apiKey":"6d37003f0cdb1921422bc474c634c135"},"ga4":{"measurementId":"G-7FZEBFLWK0"},"telemetry":{"enabled":true}},"errors":{"404":{"redirect":true,"title":"Page Not Found","description":"The page you're looking for doesn't exist. Try searching or browse our documentation sections."}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"interceptor","hasAudioNarration":false,"actualSubdomain":"interceptor","customDomains":["interceptor-docs.requestly.com"],"gitSource":{"type":"github","owner":"requestly","repo":"requestly","deployBranch":"master","contentDirectory":"documentation","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21de20a5fe930653fc14e5","collectionId":"678b2a86-c2bf-4785-ae43-bdea25368f8d","schemaVersion":"v2"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a21de20a5fe930653fc14e5:success","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"HTTP Interceptor","count":110},{"language":"default","tag":"HTTP Rules","count":34},{"language":"default","tag":"Debugging \u0026 Interception","count":26},{"language":"default","tag":"Guides","count":18},{"language":"default","tag":"Modify Requests \u0026 Responses","count":13},{"language":"default","tag":"Troubleshoot","count":13},{"language":"default","tag":"Mock APIs \u0026 Responses","count":12},{"language":"default","tag":"Advanced Traffic Rules","count":12},{"language":"default","tag":"File Server","count":9},{"language":"default","tag":"Public APIs","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"http-rules/advanced-usage/graphql-modify-request-response","slug":"/http-rules/advanced-usage/graphql-modify-request-response","pageMetadata":{"title":"GraphQL Support","slug":"graphql-modify-request-response","path":"/http-rules/advanced-usage/graphql-modify-request-response","visibility":"PUBLIC","format":"MDX","description":"Learn to modify GraphQL API requests and responses using Requestly Interceptor to debug and test GraphQL APIs.","href":"/http-rules/advanced-usage/graphql-modify-request-response"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn to modify GraphQL API requests and responses using Requestly Interceptor to debug and test GraphQL APIs.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Step,Steps}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);return _jsxs(_Fragment,{children:[_jsx(_components.hr,{}),`\n`,_jsx(_components.p,{children:`Unlike REST APIs, GraphQL APIs provide a flexible approach to querying and mutating data through a single endpoint. They allow clients to specify exactly what data is needed, reducing over-fetching and under-fetching issues common with REST APIs. GraphQL APIs can be modified to customize requests and responses for testing and debugging. This guide provides detailed steps to achieve this using Requestly Interceptor.`}),`\n`,_jsx(Heading,{level:`2`,id:`modifying-graphql-responses`,children:`Modifying GraphQL Responses`}),`\n`,_jsxs(_components.p,{children:[`In GraphQL, client interactions are typically managed through a single HTTP endpoint. The specific operation to execute is often indicated by the `,_jsx(_components.code,{children:`operationName`}),` field in the request payload.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example Request`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`https://www.example.com/graphqlap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"operationName\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"getUsers\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` query`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` getUsers {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` users`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` id`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` email`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`To modify the response of a GraphQL API:`}),`\n`,_jsx(Heading,{level:`3`,id:`steps-to-modify-api-response`,children:`Steps to Modify API Response`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Open HTTP Rules`,children:[_jsx(_components.p,{children:`Navigate to the HTTP Rules section in the web or desktop app.`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/c2dbce79-cafa-4f4a-8fb3-3054f2027f85.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=2090462296e18a8ec4429180a4000c5d`,align:`center`,fullwidth:`false`,\"data-og-width\":`2400`,width:`2400`,\"data-og-height\":`1332`,height:`1332`,\"data-path\":`images/graphql-modify-request-response/c2dbce79-cafa-4f4a-8fb3-3054f2027f85.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/c2dbce79-cafa-4f4a-8fb3-3054f2027f85.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=0f0fc158fbd44e8c1084f103db6d9a00 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/c2dbce79-cafa-4f4a-8fb3-3054f2027f85.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=a1eb5bfe633d1e400bc044d7fed1f279 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/c2dbce79-cafa-4f4a-8fb3-3054f2027f85.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=bd7f45720d5ba2c375c9cfd90bebc570 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/c2dbce79-cafa-4f4a-8fb3-3054f2027f85.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=040f9a8f16a86a5fe83df3e833b73ec3 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/c2dbce79-cafa-4f4a-8fb3-3054f2027f85.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=b2390982db5f07b028880cc02233a55e 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/c2dbce79-cafa-4f4a-8fb3-3054f2027f85.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=64fcfb59fd005472d76770adca8a0531 2500w`})]}),_jsxs(Step,{title:`Create a New Rule`,children:[_jsxs(_components.p,{children:[`Click on ”+ New Rule” and select `,_jsx(_components.strong,{children:`Modify API Response`}),`.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/4f54d5ec-8d60-4edf-a0e0-45488977bcbc.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=b8828876996f633ec7be7b108f6121e9`,align:`center`,fullwidth:`false`,\"data-og-width\":`2400`,width:`2400`,\"data-og-height\":`1332`,height:`1332`,\"data-path\":`images/graphql-modify-request-response/4f54d5ec-8d60-4edf-a0e0-45488977bcbc.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/4f54d5ec-8d60-4edf-a0e0-45488977bcbc.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=54ec90663042afd69fda3021f30ca22e 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/4f54d5ec-8d60-4edf-a0e0-45488977bcbc.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=45d4f03636416436e175d74f4d57adaf 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/4f54d5ec-8d60-4edf-a0e0-45488977bcbc.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=90cfa3cf4c607225990de9783b2d4266 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/4f54d5ec-8d60-4edf-a0e0-45488977bcbc.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=3ad3a9d7679e0d4da6840204f8c8f483 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/4f54d5ec-8d60-4edf-a0e0-45488977bcbc.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=17abf2c87dbfde713983d4ab38f7f660 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/4f54d5ec-8d60-4edf-a0e0-45488977bcbc.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=ee3cd43253eb5147f17fcd57e2efe80b 2500w`})]}),_jsxs(Step,{title:`Configure Resource Type`,children:[_jsx(_components.p,{children:`Choose “GraphQL API” as the Resource Type.`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/94125ed8-54e8-4a23-b0c4-83bf87af50f9.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=102e03df4b23e1ff8ab22e6247374c16`,align:`center`,fullwidth:`false`,\"data-og-width\":`2400`,width:`2400`,\"data-og-height\":`1276`,height:`1276`,\"data-path\":`images/graphql-modify-request-response/94125ed8-54e8-4a23-b0c4-83bf87af50f9.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/94125ed8-54e8-4a23-b0c4-83bf87af50f9.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=b5c458770cf00add47d54d8987c0dc66 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/94125ed8-54e8-4a23-b0c4-83bf87af50f9.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=64f10c0997aa4b2a17d2983c6d3ec20f 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/94125ed8-54e8-4a23-b0c4-83bf87af50f9.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=59fc8dd1d0a881751364b6e3773f5c50 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/94125ed8-54e8-4a23-b0c4-83bf87af50f9.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=008e014c970067d893ab72b7b0e76169 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/94125ed8-54e8-4a23-b0c4-83bf87af50f9.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=d1c6bbf76ed1fb27f1043f33271c75e6 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/94125ed8-54e8-4a23-b0c4-83bf87af50f9.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=c85555d2c30dfc353b90bf373d1ee691 2500w`})]}),_jsxs(Step,{title:`Set GraphQL Operation Filter`,children:[_jsxs(_components.p,{children:[`In the `,_jsx(_components.strong,{children:`GraphQL Operation (Request Payload Filter)`}),` section:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Enter `,_jsx(_components.strong,{children:`Key`}),` as `,_jsx(_components.code,{children:`operationName`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Enter `,_jsx(_components.strong,{children:`Value`}),` as the operation name you want to target (e.g., `,_jsx(_components.code,{children:`getUsers`}),`).`]}),`\n`]}),`\n`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/f308ed77-6708-4e56-9495-6cb08bd93f1a.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=1df2bc5b65dd1c75b11f9144c6890218`,align:`center`,fullwidth:`false`,\"data-og-width\":`2400`,width:`2400`,\"data-og-height\":`1276`,height:`1276`,\"data-path\":`images/graphql-modify-request-response/f308ed77-6708-4e56-9495-6cb08bd93f1a.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/f308ed77-6708-4e56-9495-6cb08bd93f1a.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=238b6f33760907bbb314f989c8568d78 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/f308ed77-6708-4e56-9495-6cb08bd93f1a.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=4d2a4f767a695d28e4e647e0ce76ac2b 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/f308ed77-6708-4e56-9495-6cb08bd93f1a.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=9485a79976598add332f28fb7d59e652 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/f308ed77-6708-4e56-9495-6cb08bd93f1a.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=1e17e9dee244b5a802fde1950ca4ee9a 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/f308ed77-6708-4e56-9495-6cb08bd93f1a.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=26abe1fbed85fdb51332084484154a02 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/f308ed77-6708-4e56-9495-6cb08bd93f1a.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=83df1a754eaaef6685bcc182c359b8c3 2500w`})]}),_jsxs(Step,{title:`Customize Response`,children:[_jsx(_components.p,{children:`Define the new response you want to serve for the specified operation.`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/ade413a6-caeb-4f6a-b065-697ecd83ed69.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=cd3973101356a732779e1951705b3139`,align:`center`,fullwidth:`false`,\"data-og-width\":`2400`,width:`2400`,\"data-og-height\":`1276`,height:`1276`,\"data-path\":`images/graphql-modify-request-response/ade413a6-caeb-4f6a-b065-697ecd83ed69.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/ade413a6-caeb-4f6a-b065-697ecd83ed69.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=7fc835dd1122bbcd964af2677288aecb 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/ade413a6-caeb-4f6a-b065-697ecd83ed69.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=b819f72e562d19256c6b48c7dc3dd0c9 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/ade413a6-caeb-4f6a-b065-697ecd83ed69.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=f8f463fc75f121334a3da28335a70e02 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/ade413a6-caeb-4f6a-b065-697ecd83ed69.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=378242c37caca953dae58bba51193bc9 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/ade413a6-caeb-4f6a-b065-697ecd83ed69.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=52cb0176333c5abc7638f77d29a49166 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/ade413a6-caeb-4f6a-b065-697ecd83ed69.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=1ca274e76af21af7ca374a0f1caefb12 2500w`})]}),_jsxs(Step,{title:`Save and Activate`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Save`}),` to store the rule and toggle it ON to apply the changes.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/7ef71084-b8cb-4e54-9ccb-633d11c77db1.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=20178f60aec3f8088fc14275db0334f8`,align:`center`,fullwidth:`false`,\"data-og-width\":`2400`,width:`2400`,\"data-og-height\":`1332`,height:`1332`,\"data-path\":`images/graphql-modify-request-response/7ef71084-b8cb-4e54-9ccb-633d11c77db1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/7ef71084-b8cb-4e54-9ccb-633d11c77db1.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=ae5008de689725a2672f0b585f24f989 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/7ef71084-b8cb-4e54-9ccb-633d11c77db1.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=2e6651c83ea39384b3dabe267301956c 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/7ef71084-b8cb-4e54-9ccb-633d11c77db1.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=30b31f7c5613fc5d61d93bdfc55cfc4b 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/7ef71084-b8cb-4e54-9ccb-633d11c77db1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=b087b6d545ca2b38cb5233fb669896e8 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/7ef71084-b8cb-4e54-9ccb-633d11c77db1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=cf94058f2cf8062bf0cba73fadf9ba5c 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/7ef71084-b8cb-4e54-9ccb-633d11c77db1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=13481bbc5c9167c49d89037eb39b98c4 2500w`})]}),_jsxs(Step,{title:`Test the Rule`,children:[_jsx(_components.p,{children:`Validate the rule by sending a request matching your conditions and verifying the modified response.`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/a1e80ffd-39ed-4fa0-baca-656a432fa90d.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=c0935c0e34fc150b46b14ab8990055fb`,align:`center`,fullwidth:`false`,\"data-og-width\":`2400`,width:`2400`,\"data-og-height\":`1404`,height:`1404`,\"data-path\":`images/graphql-modify-request-response/a1e80ffd-39ed-4fa0-baca-656a432fa90d.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/a1e80ffd-39ed-4fa0-baca-656a432fa90d.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=fc047463e72bdeef059e2337c4951e61 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/a1e80ffd-39ed-4fa0-baca-656a432fa90d.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=653f0bab3a779b415a5eb531e62913a1 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/a1e80ffd-39ed-4fa0-baca-656a432fa90d.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=ccbc9276b4e035229a76faaf50672fae 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/a1e80ffd-39ed-4fa0-baca-656a432fa90d.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=498273c34e9d847633c702c071107198 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/a1e80ffd-39ed-4fa0-baca-656a432fa90d.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=85c0ffcf63e7ab7f4d7a8ea50761939b 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/a1e80ffd-39ed-4fa0-baca-656a432fa90d.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=a7a108d77ba2aa38adf9057c12b5c5fd 2500w`})]})]}),`\n`,_jsx(_components.p,{children:`For additional details, visit the Modify API Response Rule Page.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Notes`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Key`}),` represents the JSON key in the request payload and supports nested paths. For example:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`operationName`}),` is located at `,_jsx(_components.code,{children:`data.operationName`}),`, specify `,_jsx(_components.code,{children:`data.operationName`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`For array payloads, such as `,_jsx(_components.code,{children:`[{\"operationName\": \"value\"}]`}),`, use `,_jsx(_components.code,{children:`0.operationName`}),` as the key.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`If the request does not include `,_jsx(_components.code,{children:`operationName`}),`, select `,_jsx(_components.strong,{children:`Resource Type`}),` as “REST API” and use `,_jsx(_components.strong,{children:`Dynamic (JavaScript) Mode`}),` to filter and modify the response.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`example-without-operationname`,children:[`Example Without `,_jsx(_components.code,{children:`operationName`})]}),`\n`,_jsxs(_components.p,{children:[`In cases where the operation is specified within the `,_jsx(_components.code,{children:`query`}),` field:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /graphql`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` query`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` getUsers {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` users`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` id`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` email`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`You can modify the response using a JavaScript snippet:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`jsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`jsx`,children:_jsxs(_components.code,{language:`jsx`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` modifyResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`args`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`requestData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`responseJSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` args`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`requestData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`includes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"query getUsers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Requestly Interceptor: Modifying response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`query:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` requestData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`responseJSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`custom:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`modifying-graphql-requests`,children:`Modifying GraphQL Requests`}),`\n`,_jsxs(_components.p,{children:[`If you need to alter the GraphQL query or its variables, use the `,_jsx(_components.strong,{children:`Modify Request Body`}),` rule to change the request payload dynamically.`]}),`\n`,_jsx(Heading,{level:`3`,id:`steps-to-modify-request-body`,children:`Steps to Modify Request Body`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Open HTTP Rules`,children:[_jsx(_components.p,{children:`Navigate to the HTTP Rules tab in the web or desktop app.`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/5bb28e10-7243-4eaa-8618-229476ccf604.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=957fa09e0b465619f9a9aee1da79078c`,align:`center`,fullwidth:`false`,\"data-og-width\":`2400`,width:`2400`,\"data-og-height\":`1332`,height:`1332`,\"data-path\":`images/graphql-modify-request-response/5bb28e10-7243-4eaa-8618-229476ccf604.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/5bb28e10-7243-4eaa-8618-229476ccf604.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=729e4387292216ca6459b8b969cf921b 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/5bb28e10-7243-4eaa-8618-229476ccf604.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=fbd16e1dffdf371d847daac92175abe4 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/5bb28e10-7243-4eaa-8618-229476ccf604.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=51ce82f70a427aa3f1434f67fdd19c4e 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/5bb28e10-7243-4eaa-8618-229476ccf604.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=f6ba6baac91715da180fb6f1e3c06969 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/5bb28e10-7243-4eaa-8618-229476ccf604.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=36041cebd13432dd0369d3ba10862a28 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/5bb28e10-7243-4eaa-8618-229476ccf604.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=8952c6fc1682b4f84dd6ee8d03b2072e 2500w`})]}),_jsxs(Step,{title:`Create a New Rule`,children:[_jsxs(_components.p,{children:[`Click on ”+ New Rule” and select `,_jsx(_components.strong,{children:`Modify Request Body`}),`.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/77286f4f-e8cc-4267-b18a-a715c6ae16f1.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=1e2924c62e62c5d8459b57cc3badba9b`,align:`center`,fullwidth:`false`,\"data-og-width\":`2400`,width:`2400`,\"data-og-height\":`1332`,height:`1332`,\"data-path\":`images/graphql-modify-request-response/77286f4f-e8cc-4267-b18a-a715c6ae16f1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/77286f4f-e8cc-4267-b18a-a715c6ae16f1.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=8920853ccfbaedd7f7a0440372152f88 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/77286f4f-e8cc-4267-b18a-a715c6ae16f1.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=feb74a826c0843e282541012d238d497 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/77286f4f-e8cc-4267-b18a-a715c6ae16f1.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=523eb3c9449d8213b9189fa38fa5b94d 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/77286f4f-e8cc-4267-b18a-a715c6ae16f1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=49ff363448009bf963970c602f2eb61e 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/77286f4f-e8cc-4267-b18a-a715c6ae16f1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=006c666d8e29b56d0b883b4141f8f7ad 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/77286f4f-e8cc-4267-b18a-a715c6ae16f1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=bba2eb25c5a052bd2a6beadf2e5e3ebf 2500w`})]}),_jsxs(Step,{title:`Configure Resource Type`,children:[_jsx(_components.p,{children:`Choose “GraphQL API” as the Resource Type.`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/112f8c75-4bb0-4e3d-91a6-c78c9f0434c5.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=1ce08dbb81554afc6844f10c65769ee2`,align:`center`,fullwidth:`false`,\"data-og-width\":`2250`,width:`2250`,\"data-og-height\":`1364`,height:`1364`,\"data-path\":`images/graphql-modify-request-response/112f8c75-4bb0-4e3d-91a6-c78c9f0434c5.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/112f8c75-4bb0-4e3d-91a6-c78c9f0434c5.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=91ba12d613b5043e2089b6cefe85aeec 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/112f8c75-4bb0-4e3d-91a6-c78c9f0434c5.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=82954e60d31b40155c2304f5867e9f46 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/112f8c75-4bb0-4e3d-91a6-c78c9f0434c5.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=7e46cf38ce6ebd0ffa6952dda40b9acd 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/112f8c75-4bb0-4e3d-91a6-c78c9f0434c5.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=0ab93d9a99bb8a6f882ef2a20e76b1dc 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/112f8c75-4bb0-4e3d-91a6-c78c9f0434c5.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=84e3586869341663c039d942af17f327 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/112f8c75-4bb0-4e3d-91a6-c78c9f0434c5.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=8c257350b4062a3aa21c3d26dcc54124 2500w`})]}),_jsxs(Step,{title:`Set GraphQL Operation Filter`,children:[_jsxs(_components.p,{children:[`In the `,_jsx(_components.strong,{children:`GraphQL Operation (Request Payload Filter)`}),` section:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Enter `,_jsx(_components.strong,{children:`Key`}),` as `,_jsx(_components.code,{children:`operationName`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Enter `,_jsx(_components.strong,{children:`Value`}),` as the operation name you want to target (e.g., `,_jsx(_components.code,{children:`getUsers`}),`).`]}),`\n`]}),`\n`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/dde4dd52-6ffd-4c94-86d9-171a88d5a88d.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=c15a2c638ad9389ad9709228920a571f`,align:`center`,fullwidth:`false`,\"data-og-width\":`2236`,width:`2236`,\"data-og-height\":`1278`,height:`1278`,\"data-path\":`images/graphql-modify-request-response/dde4dd52-6ffd-4c94-86d9-171a88d5a88d.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/dde4dd52-6ffd-4c94-86d9-171a88d5a88d.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=7d490a9b327bf21ac6caabd03d55b144 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/dde4dd52-6ffd-4c94-86d9-171a88d5a88d.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=61147eb81b2e5040142127a931cc156a 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/dde4dd52-6ffd-4c94-86d9-171a88d5a88d.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=35a8edfce0f291bf03ffe442b4a0e7d0 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/dde4dd52-6ffd-4c94-86d9-171a88d5a88d.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=aa8234856807975af54c62dc52e02eb2 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/dde4dd52-6ffd-4c94-86d9-171a88d5a88d.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=05c88c57a1fbd5bc7d2a8c9e01b88716 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/dde4dd52-6ffd-4c94-86d9-171a88d5a88d.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=8b8487ce66431ca8bad17c38b88e83a2 2500w`})]}),_jsxs(Step,{title:`Customize Request`,children:[_jsx(_components.p,{children:`Define the new Request you want to serve for the specified operation`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/027a3c69-b67f-4608-a5e5-7ae5e93fe875.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=83dcbd820beb090d22af8a28dd43cb5e`,align:`center`,fullwidth:`false`,\"data-og-width\":`2236`,width:`2236`,\"data-og-height\":`1278`,height:`1278`,\"data-path\":`images/graphql-modify-request-response/027a3c69-b67f-4608-a5e5-7ae5e93fe875.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/027a3c69-b67f-4608-a5e5-7ae5e93fe875.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=ecdcda610e8fb7aa69aecd7fe3a8a22e 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/027a3c69-b67f-4608-a5e5-7ae5e93fe875.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=45beb811145fd88f5f9d4ab6894eb07d 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/027a3c69-b67f-4608-a5e5-7ae5e93fe875.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=13ba03e1884292a3dd370649fc7c1bac 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/027a3c69-b67f-4608-a5e5-7ae5e93fe875.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=a70925dbfb2f0cca1b80f7ab60b8f2d3 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/027a3c69-b67f-4608-a5e5-7ae5e93fe875.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=631f3c655e8b0ebe011fd4813b287a19 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/027a3c69-b67f-4608-a5e5-7ae5e93fe875.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=4d7cb143f4c126f0a9d5972a45d9890f 2500w`})]}),_jsxs(Step,{title:`Save and Activate`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Save`}),` to store the rule and toggle it ON to apply the changes`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/6751b63e-802b-4efa-954c-124dbc162c86.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=60cefb7c7a5f2f53f0b12c217ea0a326`,align:`center`,fullwidth:`false`,\"data-og-width\":`2250`,width:`2250`,\"data-og-height\":`1364`,height:`1364`,\"data-path\":`images/graphql-modify-request-response/6751b63e-802b-4efa-954c-124dbc162c86.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/6751b63e-802b-4efa-954c-124dbc162c86.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=d575996119b493beea110cca43b0f0fd 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/6751b63e-802b-4efa-954c-124dbc162c86.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=f8197bd0a9d2f7177423fc5a92235036 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/6751b63e-802b-4efa-954c-124dbc162c86.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=bab6ae75edeb268e0886291be4d2db8c 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/6751b63e-802b-4efa-954c-124dbc162c86.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=e0021486a9bbc584a92aa8c2e99b1128 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/6751b63e-802b-4efa-954c-124dbc162c86.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=3de168548cc81a1b06736f65392609f2 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/6751b63e-802b-4efa-954c-124dbc162c86.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=d1f3d9d60e85f5dd818800a2b1dbd358 2500w`})]}),_jsxs(Step,{title:`Test the Rule`,children:[_jsx(_components.p,{children:`Validate the rule by sending a request matching your conditions and verifying the modified response.`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/fa513012-32fe-4203-848f-3b4edec6abda.png?fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=1525a6f2d461a20aaf18758046d1db18`,align:`center`,fullwidth:`false`,\"data-og-width\":`2236`,width:`2236`,\"data-og-height\":`1278`,height:`1278`,\"data-path\":`images/graphql-modify-request-response/fa513012-32fe-4203-848f-3b4edec6abda.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/fa513012-32fe-4203-848f-3b4edec6abda.png?w=280\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=002bb76fa52314e708e95893604459a6 280w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/fa513012-32fe-4203-848f-3b4edec6abda.png?w=560\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=b1acd3035d69392247da017a89e2abe5 560w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/fa513012-32fe-4203-848f-3b4edec6abda.png?w=840\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=48fe116054f751b4c7028fd7f0485e7b 840w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/fa513012-32fe-4203-848f-3b4edec6abda.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=ca1a9e62057625639f462811c2b6e3a9 1100w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/fa513012-32fe-4203-848f-3b4edec6abda.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=e0aa23ae987b377f6e06e3717905ff17 1650w, https://mintcdn.com/interceptor/XXK0nJZwW3sklrNQ/images/graphql-modify-request-response/fa513012-32fe-4203-848f-3b4edec6abda.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XXK0nJZwW3sklrNQ\u0026q=85\u0026s=3ad64e4bab3b706cb96fc3356fa27932 2500w`})]})]}),`\n`,_jsx(_components.p,{children:`For additional details, visit the Modify Request Rule Page.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"GraphQL Support","slug":"graphql-modify-request-response","path":"/http-rules/advanced-usage/graphql-modify-request-response","visibility":"PUBLIC","format":"MDX","description":"Learn to modify GraphQL API requests and responses using Requestly Interceptor to debug and test GraphQL APIs.","href":"/http-rules/advanced-usage/graphql-modify-request-response"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Modifying GraphQL Responses","slug":"modifying-graphql-responses","depth":2,"children":[{"title":"Steps to Modify API Response","slug":"steps-to-modify-api-response","depth":3,"children":[]},{"title":"Example Without operationName","slug":"example-without-operationname","depth":3,"children":[]}]},{"title":"Modifying GraphQL Requests","slug":"modifying-graphql-requests","depth":2,"children":[{"title":"Steps to Modify Request Body","slug":"steps-to-modify-request-body","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"interceptor","siteName":"Requestly HTTP Interceptor","title":"GraphQL Support - Requestly HTTP Interceptor","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-14T05:43:26.281Z","originalFileLocation":"http-rules/advanced-usage/graphql-modify-request-response.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn to modify GraphQL API requests and responses using Requestly Interceptor to debug and test GraphQL APIs.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Requestly HTTP Interceptor\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/interceptor/p9dGTtMpZYhn8nu0/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/interceptor/p9dGTtMpZYhn8nu0/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/interceptor/p9dGTtMpZYhn8nu0/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/interceptor/p9dGTtMpZYhn8nu0/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/interceptor/p9dGTtMpZYhn8nu0/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/interceptor/p9dGTtMpZYhn8nu0/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/interceptor/p9dGTtMpZYhn8nu0/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/interceptor/p9dGTtMpZYhn8nu0/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/interceptor/p9dGTtMpZYhn8nu0/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"GraphQL Support - Requestly HTTP Interceptor\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn to modify GraphQL API requests and responses using Requestly Interceptor to debug and test GraphQL APIs.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Requestly HTTP Interceptor Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://interceptor-docs.requestly.com/http-rules/advanced-usage/graphql-modify-request-response\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://interceptor.mintlify.app/_mintlify/api/og/v2?division=Advanced+Traffic+Rules\u0026amp;title=GraphQL+Support\u0026amp;description=Learn+to+modify+GraphQL+API+requests+and+responses+using+Requestly+Interceptor+to+debug+and+test+GraphQL+APIs.\u0026amp;theme=72de42b81cbadcc866d7ff93\u0026amp;signature=6270a20d8b07a30278a694cbe46c997f31991118c4736f10c675623674681291\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"GraphQL Support - Requestly HTTP Interceptor\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn to modify GraphQL API requests and responses using Requestly Interceptor to debug and test GraphQL APIs.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://interceptor.mintlify.app/_mintlify/api/og/v2?division=Advanced+Traffic+Rules\u0026amp;title=GraphQL+Support\u0026amp;description=Learn+to+modify+GraphQL+API+requests+and+responses+using+Requestly+Interceptor+to+debug+and+test+GraphQL+APIs.\u0026amp;theme=72de42b81cbadcc866d7ff93\u0026amp;signature=6270a20d8b07a30278a694cbe46c997f31991118c4736f10c675623674681291\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/interceptor/p9dGTtMpZYhn8nu0/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Requestly HTTP Interceptor\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563eb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://interceptor-docs.requestly.com/http-rules/advanced-usage/graphql-modify-request-response\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/http-rules/advanced-usage/graphql-modify-request-response.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://interceptor-docs.requestly.com/#organization\",\"name\":\"Requestly HTTP Interceptor\",\"url\":\"https://interceptor-docs.requestly.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/interceptor/fhZRboFseopn8ocm/images/logo-light.webp?fit=max\u0026auto=format\u0026n=fhZRboFseopn8ocm\u0026q=85\u0026s=f0fa5759c6065f7c53a6eb9829cf5004\"}},{\"@type\":\"WebSite\",\"@id\":\"https://interceptor-docs.requestly.com#website\",\"name\":\"Requestly HTTP Interceptor\",\"url\":\"https://interceptor-docs.requestly.com\",\"publisher\":{\"@id\":\"https://interceptor-docs.requestly.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://interceptor-docs.requestly.com/http-rules/advanced-usage/graphql-modify-request-response#webpage\",\"url\":\"https://interceptor-docs.requestly.com/http-rules/advanced-usage/graphql-modify-request-response\",\"name\":\"GraphQL Support\",\"description\":\"Learn to modify GraphQL API requests and responses using Requestly Interceptor to debug and test GraphQL APIs.\",\"dateModified\":\"2026-05-14T05:43:26.281Z\",\"isPartOf\":{\"@id\":\"https://interceptor-docs.requestly.com#website\"},\"breadcrumb\":{\"@id\":\"https://interceptor-docs.requestly.com/http-rules/advanced-usage/graphql-modify-request-response#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://interceptor-docs.requestly.com/http-rules/advanced-usage/graphql-modify-request-response#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HTTP Rules\",\"item\":\"https://interceptor-docs.requestly.com/http-rules/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Advanced Traffic Rules\",\"item\":\"https://interceptor-docs.requestly.com/http-rules/advanced-usage\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"GraphQL Support\",\"item\":\"https://interceptor-docs.requestly.com/http-rules/advanced-usage/graphql-modify-request-response\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://interceptor-docs.requestly.com/http-rules/advanced-usage/graphql-modify-request-response#article\",\"headline\":\"GraphQL Support\",\"name\":\"GraphQL Support\",\"description\":\"Learn to modify GraphQL API requests and responses using Requestly Interceptor to debug and test GraphQL APIs.\",\"url\":\"https://interceptor-docs.requestly.com/http-rules/advanced-usage/graphql-modify-request-response\",\"mainEntityOfPage\":{\"@id\":\"https://interceptor-docs.requestly.com/http-rules/advanced-usage/graphql-modify-request-response#webpage\"},\"dateModified\":\"2026-05-14T05:43:26.281Z\",\"publisher\":{\"@id\":\"https://interceptor-docs.requestly.com/#organization\"},\"isPartOf\":{\"@id\":\"https://interceptor-docs.requestly.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Requestly HTTP Interceptor\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Requestly HTTP Interceptor","nav":{"global":null,"tabs":[{"tab":"HTTP Interceptor","icon":"globe","groups":[{"group":"Getting Started","pages":[{"title":"Overview","href":"/getting-started/overview"},{"title":"Download Requestly Interceptor","href":"/getting-started/downloads"},{"title":"Browser Extension Setup","href":"/getting-started/quick-start-guide/browser-extension-setup"},{"title":"Desktop App Setup","href":"/getting-started/quick-start-guide/desktop-app-setup"},{"title":"Desktop App vs Browser Extension","href":"/getting-started/difference-between-desktop-app-and-browser-extension"}]},{"group":"Debugging \u0026 Interception","pages":[{"title":"Overview","href":"/interceptor/overview"},{"group":"Capture Traffic","pages":[{"title":"Browser Extension ","href":"/interceptor/browser-extension"},{"title":"Browser Interception","href":"/interceptor/browser-extension/browser-interception"},{"title":"Desktop App","href":"/interceptor/desktop-app"},{"title":"Browser Interception","href":"/interceptor/desktop-app/browser-interception"},{"title":"System Wide Proxy","href":"/interceptor/desktop-app/desktop-app-interception"},{"title":"Network Table","href":"/interceptor/desktop-app/network-table"},{"title":"Saving Logs to local file ","href":"/interceptor/desktop-app/saving-logs-to-local-file"}]},{"group":"Intercept Different Devices \u0026 Runtimes","pages":[{"title":"Android Devices Interception","href":"/interceptor/desktop-app/android-devices"},{"title":"Android Simulator Interception","href":"/interceptor/desktop-app/android-simulator-interception"},{"title":"iOS Devices Interception","href":"/interceptor/desktop-app/ios-devices-interception"},{"title":"iOS Simulator Interception","href":"/interceptor/desktop-app/ios-simulator-interception"},{"title":"Node.js","href":"/interceptor/desktop-app/nodejs"},{"title":"Intercept Traffic from your terminal","href":"/interceptor/desktop-app/terminal"}]},{"group":"Record \u0026 Share Sessions","pages":[{"title":"Overview","href":"/sessions/overview"},{"title":"Record API Sessions","href":"/sessions/record-api-sessions"},{"title":"Record Bug Reports","href":"/sessions/record-bug-reports"},{"title":"Import \u0026 View HAR File","href":"/sessions/import-view-har-file"},{"title":"Access Control of Session","href":"/sessions/access-control-of-session"}]}]},{"group":"HTTP Rules","pages":[{"title":"Overview","href":"/http-rules/overview"},{"group":"Modify Requests \u0026 Responses","pages":[{"title":"HTTP Rules","href":"/http-rules/rule-types"},{"title":"Redirect Request","href":"/http-rules/rule-types/redirect-rule"},{"title":"Replace String Rule","href":"/http-rules/rule-types/replace-strings"},{"title":"Modify Headers","href":"/http-rules/rule-types/modify-headers"},{"title":"Modify Request Body","href":"/http-rules/rule-types/modify-request-body"},{"title":"Modify Query Params","href":"/http-rules/rule-types/modify-query-params"},{"title":"Modify User Agents","href":"/http-rules/rule-types/modify-user-agents"},{"title":"Delay Network Requests","href":"/http-rules/rule-types/delay-network-requests"},{"title":"Modify API Response","href":"/http-rules/rule-types/modify-response-body"},{"title":"Insert Scripts","href":"/http-rules/rule-types/insert-scripts"},{"title":"Cancel Request Rule","href":"/http-rules/rule-types/cancel-rule"},{"title":"Map Local","href":"/http-rules/rule-types/map-local"},{"title":"Map Remote","href":"/http-rules/rule-types/map-remote"}]},{"group":"Advanced Traffic Rules","pages":[{"title":"Advanced Usage","href":"/http-rules/advanced-usage"},{"title":"Grouping","href":"/http-rules/advanced-usage/grouping"},{"title":"Pinning Rules","description":"Pin rules in Requestly Interceptor for quick access and easy toggling directly from the Chrome toolbar.","href":"/http-rules/advanced-usage/pinning-rules"},{"title":"GraphQL Support","href":"/http-rules/advanced-usage/graphql-modify-request-response"},{"title":"Source Conditions","description":"Define source conditions and advanced filters for precise network request rules, including regex and wildcard testing.","href":"/http-rules/advanced-usage/source-conditions"},{"title":"Test This Rule","href":"/http-rules/advanced-usage/test-rules"},{"title":"Shared State","href":"/http-rules/advanced-usage/shared-state"},{"title":"Pause/Resume Requestly Interceptor","href":"/http-rules/advanced-usage/pauseresume-requestly"},{"title":"Rules Status Syncing","href":"/http-rules/advanced-usage/rules-status-syncing"},{"title":"Advance Filters","href":"/http-rules/advanced-usage/advance-filters"},{"title":"Validate Rules Execution","href":"/http-rules/advanced-usage/validate-rules-execution"},{"title":"Multiple Conditions in a Single Rule in Requestly Interceptor","href":"/http-rules/advanced-usage/multiple-conditions-in-a-single-rule-in-requestly"}]},{"group":"Share \u0026 Import Rules","pages":[{"title":"Sharing","href":"/http-rules/sharing"},{"title":"Share in Workspace","href":"/http-rules/sharing/share-in-workspace"},{"title":"Shared List","href":"/http-rules/sharing/shared-list"},{"title":"Download Rules","href":"/http-rules/sharing/download-rules"},{"title":"Charles Proxy","href":"/imports/charles-proxy"},{"title":"Header Editor","href":"/imports/header-editor"},{"title":"Modheader","href":"/imports/modheader"},{"title":"Resource Override","href":"/imports/resource-override"}]}]},{"group":"Mock APIs \u0026 Responses","pages":[{"group":"Quick Mocking","pages":[{"title":"API Mocking","href":"/api-mocking/api-mocking"},{"title":"Create Cloud-based Mocks","href":"/api-mocking/create-cloud-based-mocks"},{"title":"Create Local API Mocks ","href":"/api-mocking/create-local-api-mocks"}]},{"group":"File Server","pages":[{"title":"Overview","href":"/mock-server/overview"},{"group":"Create Mocks","pages":[{"title":"Create","href":"/mock-server/create"},{"title":"Create JSON Files","href":"/mock-server/create/create-mock-api"},{"title":"Create JS/CSS Files","href":"/mock-server/create/create-new-mock-file"},{"title":"Use File Collection","href":"/mock-server/create/mock-collection"}]},{"title":"Test File Server","href":"/mock-server/test"},{"title":"Pre-Configured Files","href":"/mock-server/pre-configured-mocks"},{"title":"Templating in File server","href":"/mock-server/templating-in-mocks"},{"title":"Import and Export Files","href":"/mock-server/import-and-export-mocks"}]}]},{"group":"Guides","pages":[{"group":"API Testing \u0026 Automation","pages":[{"title":"Automating API Tests with Requestly Interceptor's Collection Runner","href":"/guides/community-content/using-collection-runner-in-requestly"},{"title":"Mastering Variables \u0026 Environments in Requestly Interceptor","href":"/guides/community-content/variables-and-environments-in-requestly"}]},{"group":"Traffic Modification \u0026 Mocking","pages":[{"title":"Record and Mock Flaky APIs in bulk","href":"/guides/record-and-mock-flaky-apis-in-bulk"},{"title":"How to Modify Cookies Using Requestly Interceptor","href":"/guides/how-to-modify-cookies-using-requestly"},{"title":"Modify HTTP Headers in Web Automation Using Requestly Interceptor","href":"/guides/modify-http-headers-in-web-automation-using-requestly"},{"title":"How to Modify HTML Document using Modify API Response Rule","href":"/guides/modify-html-document-using-modify-api-response-rule"},{"title":"Use Shared State to Aggregate Data Across Rules","href":"/guides/how-to-use-shared-state-to-aggregate-data-and-use-across-requestly-rules"},{"title":"Modifying response asynchronously","href":"/guides/modifying-response-asynchronously"},{"title":"How to conditionally fail requests based on request counts","href":"/guides/how-to-conditionally-fail-requests-based-on-request-counts"},{"title":"Intercept \u0026 Modify Network Requests in Web Automation (Selenium, Playwright, etc.)","href":"/guides/intercepting-and-modifying-network-requests-in-web-automation-frameworks-like-selenium-and-playwright"}]},{"group":"Debugging \u0026 Interception","pages":[{"title":"How to avoid intercepting certain domains","href":"/guides/how-to-avoid-intercepting-certain-domains-on-the-desktop-app"},{"title":"How to Use Requestly Interceptor Extension in BrowserStack Live","href":"/guides/how-to-use-requestly-extension-in-browserstack-live"},{"title":"Requestly Interceptor Integration with BrowserStack App Live","href":"/guides/requestly-integration-browserstack-app-live"},{"title":"Disable Rule Application Status Widget","href":"/guides/disable-rule-application-status-widget"},{"title":"Disable Rules Syncing in Requestly Interceptor","href":"/guides/disable-rules-syncing"},{"title":"How to Log in to Requestly Interceptor with Your BrowserStack Account","href":"/guides/can-i-log-in-to-requestly-using-my-browserstack-account"},{"title":"Manually Update the Requestly Interceptor Chrome Extension","href":"/guides/how-to-update-requestly-extension-manually"}]},{"group":"Other","pages":[{"title":"Claim Your Requestly Interceptor GitHub Student Pack Benefit","href":"/guides/other/claim-your-requestly-github-student-pack-benefit"}]}]},{"group":"Public APIs","pages":[{"title":"Overview","href":"/public-apis/overview"},{"title":"Create A New Group","href":"/public-apis/create-group"},{"title":"Create Rule","href":"/public-apis/create-rule"},{"title":"Get Group","href":"/public-apis/get-group"},{"title":"Get Rule","href":"/public-apis/get-rule"},{"title":"Update A Specific Groups","href":"/public-apis/update-existing-groups"},{"title":"Update Rule","href":"/public-apis/update-rule"},{"title":"Delete Group","href":"/public-apis/delete-group"},{"title":"Delete Rule","href":"/public-apis/delete-rule"}]},{"group":"Troubleshoot","pages":[{"group":"Interception Setup","pages":[{"title":"Unable to intercept web traffic on browser, mobile, or emulator","href":"/troubleshoot/http-interceptor/unable-to-intercept-web-traffic-on-browser-mobile-or-emulator"},{"title":"Cannot Intercept Requests from Localhost","href":"/troubleshoot/http-interceptor/intercepting-requests-from-localhost"},{"title":"Troubleshooting: Untrusted SSL certificate","href":"/troubleshoot/http-interceptor/troubleshooting-untrusted-ssl-certificate"},{"title":"How to Install Requestly Interceptor CA Certificate in Windows Certificate Manager","href":"/troubleshoot/http-interceptor/install-certificate-windows"},{"title":"System Wide Proxy Not Working (macOS)","href":"/troubleshoot/http-interceptor/system-wide-proxy-not-working-macos"},{"title":"Troubleshooting Proxy Not Shown Issue (Windows)","href":"/troubleshoot/http-interceptor/troubleshooting-proxy-not-shown-windows"},{"title":"SSL Certificate Issues with Safari","href":"/troubleshoot/http-interceptor/troubleshooting-safari"},{"title":"Disable System Wide Proxy (MacOS)","href":"/troubleshoot/http-interceptor/disable-system-wide-proxy-macos"}]},{"group":"Rules \u0026 Traffic Modification","pages":[{"title":"Rules Not working","href":"/troubleshoot/http-rules/rules-not-working"},{"title":"Error on saving rule","href":"/troubleshoot/http-rules/error-on-saving-rule"},{"title":"Rule changes not reflecting in Chrome DevTools","href":"/troubleshoot/http-rules/rule-changes-not-reflecting-in-chrome-devtools"}]},{"group":"Account \u0026 Miscellaneous","pages":[{"title":"Troubleshooting login issues","href":"/troubleshoot/miscellaneous/troubleshooting-login-issues"},{"title":"How to Check Your Requestly Interceptor Version in the Browser","href":"/troubleshoot/miscellaneous/how-to-check-your-requestly-version-in-the-browser"}]}]}]},{"tab":"API Client","icon":"house","href":"https://docs.requestly.com"}]},"title":"GraphQL Support - Requestly HTTP Interceptor","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-D7yRe3On.js","lightbox-handle-r17bVUz3.js"]}