# Modifying API Endpoints

Apart from mapping requests to different host destinations (that return entirely new responses), you can use Fiddler to modify the ongoing traffic by changing API endpoints through their paths, or by changing and substituting parts of the HTTP requests and response headers and bodies.

## Creating a "Modify Image Endpoint" Rule

Create a "Modify Image Endpoint" rule by setting the following actions through the [Rules Builder](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/modify-traffic-with-rules).

1. Create a matching condition that uses the "When **all these conditions** are met **any number of times**" pattern.
2. Match by a **URL** that uses a string value to match the desired URL. For example, match **googlelogo** from the following URL `https://www.google.com/images/branding/googlelogo/1x/googlelogo_light_color_272x92dp.png`.
3. Match by a **Method** equal to `GET`.
4. Create an **Update URL** action and set the desired new target URL. For example:  `https://www.gstatic.com/ac/cb/youtube_logo_v2.svg`.

This sample Fiddler rule maps an HTTP request to return a custom image.

![Creating "Modify Image Endpoint" rule](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/assets/358a6a0686e24935dae78e5f3db42ab8/adv-modify-image-endpoint-local.png)

Once the rule is created, enable the **Rules** tab, toggle the rule switch, and start capturing traffic.

![Activating the "Modify Image Endpoint" rule](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/assets/ae7c8e9e4f451b6e54f956e7b987c662/adv-modify-image-endpoint-local-active.png)

Download a ready-to-use <a href="https://github.com/telerik/fiddler-everywhere/tree/master/rules/modify-image-endpoint-local" target="_blank">"Modify Image Endpoint"</a> rule as a FARX file, which you can import through the Rules toolbar.

## See Also

* [Learn more about the Rules functionality in Fiddler Everywhere here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/modify-traffic-with-rules)
* [Learn more about all rules presets in Fiddler Everywhere here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/rules-presets)
* [Learn more on how to organize your rules here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/organizing-rules)
* [Learn more about the matching conditions here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/conditions-and-actions#conditions)
* [Learn more about the supported actions here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/conditions-and-actions#actions)
* [Learn more about final and non-final rules here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/conditions-and-actions#final-and-non-final-actions)
* [Learn more about using breakpoints here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/breakpoints)
