📣 Requestly – Modern git-based API Client. No login required. Switch from Postman in 1 click. Try now ->

Modify Request Body

Intercept & Modify Request Body in
Real Time

Override Request Body

Test different responses

Works for REST & GraphQL APIs

Change user token during testing

Download Now
Documentation ->
4.5 ⭐  1700+ Ratings, 300,000+  developers
Redirect URLs

Trusted by 300,000+ developers from Fortune 500 companies.

Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at… Trusted by teams at…
modify request body
modify request body

Modify Request Body Without Changing Code

Instantly intercept and update fetch or XHR request payloads from your browser. Simulate edge cases, test error flows, and speed up development, no backend changes needed.

Test Error Scenarios Without Backend Changes​

Trigger specific error paths (e.g. payment failures, out-of-stock items) by tweaking request payloads, great for QA and debugging.
Download Now
Learn more ->
modify request body
modify request body .

Supports APIs triggered as XHR or fetch

Requestly handles daily dev tasks like bug replication, API mocking, and testing.
modify request body | graphql support

GraphQL Support

It supports GraphQL APIs. Select GraphQL as the resource type, filter by operationName, and modify the query or variables using static JSON or custom JavaScript.

Match URLs using Regex

Use regular expressions to achieve intricate URL pattern matching without the need for overly complex, indirect approaches. This grants you granular control over your URL replacements in a more streamlined manner.
Download Now
Learn more ->
modify request body | match urls using regex

Collaboration & 1-Click Sharing

Promote consistency and accelerate development by sharing Requestly rules within your team.
collaboration 1 click sharing

Built for teams

Effortless team collaboration

Share instantly, sync effortlessly, and collaborate effectively with your team in dedicated workspaces.

Quick One time sharing

Instantly generate and share a link to your rules and more

Team workspaces

Collaborate easily with teammates in a shared workspace.

Export data & sync to Git

Easily version-control your configs by exporting and syncing

Secure and private

Enterprise-ready security and compliance

Requestly ensures top-tier security with SOC-II compliance, SSO integration, and role-based access control. We protect your data and secure your workflows, making us the ideal choice for enterprises.
Requestly security and compliance

SOC-II Compliance

Adheres to rigorous security standards for data protection and privacy.

Single Sign-On (SSO)

Simplifies user access with secure, centralized authentication.

Role-based access control

Ensures precise control over user permissions and data access.

Data encryption

Protects your data in transit and at rest with advanced encryption protocols.

Audit logs

Tracks and records user actions and system events, giving you complete visibility.

Regular security updates

Keeps your environment secure with timely updates and patches.
Customers love us

Loved by developers around the World

Developers around the world trust us to simplify debugging, speed up workflows, and make development more efficient.

Frequently Asked Questions​

There are frequently asked questions related to Requestly

What does the Modify Request Body rule do in Requestly?

The Modify Request Body rule lets you intercept outgoing API requests and change the request payload before it reaches the server. This helps you test different request scenarios without changing your frontend code or backend setup.

What request formats can I modify using this rule?

You can modify JSON, XML, form data, plain text, and other text-based request payloads. This makes it easy to test APIs that accept different request formats.

Is Requestly open-source

Is the Modify Request Body rule available in the free plan?

Yes, the Modify Request Body rule is available in Requestly’s free plan for local API testing and debugging.

Do I need a paid plan to create multiple API response modification rules?

No, you can create and use multiple response modification rules on the free plan. Paid plans mainly unlock collaboration, syncing, and team workflows.

Is Requestly free for students?

Yes! Requestly is free for students, enjoy access to powerful tools and features with no cost.

My Modify Request Body rule is not working. What should I check?

First, make sure the rule is enabled, the URL matching condition is correct, and the outgoing request matches your configured endpoint. Also verify that Requestly interception is active.

Why are my request body changes not reaching the server?

The request may not be matching your rule, or the payload format may be different from what you expected. Inspect the actual request in browser DevTools and verify the request body structure.

Why Aren’t My Requestly Rules Working?

How do I change a JSON field in an API request using Requestly?

Create a Modify Request Body rule, add the API endpoint in the source condition, select the JSON field you want to update, enter the new value, save the rule, and trigger the API call again. Matching requests will now send the modified payload.

How do I test different user roles or permissions without changing frontend code?

Intercept the API request that sends user data, modify fields like role, account type, or permissions, and resend the request. This lets you test different backend scenarios instantly.

How do I test invalid or edge-case payloads?

Use the Modify Request Body rule to send empty values, invalid formats, large payloads, null fields, or missing parameters. This helps you test server-side validation and error handling.