# 2025 03 05 release notes (core)

## Release summary <a href="#release-summary" id="release-summary"></a>

This page summarises items scheduled for the following release to the Patchworks Core Production environment.&#x20;

| Release version | Release date   |
| --------------- | -------------- |
| v2025-03-05     | 5th March 2025 |

New features, updates, and enhancements are summarised below.

## **Pre and post-request scripts**

Until now, if a `post-request` script was required for an endpoint it could be [added to connector shapes in process flows](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/connector-shape/using-connector-shape-response-scripts.md) - for example:

<div align="left"><figure><img src="/files/UxbjSrWjRFN7K0AqSVhX" alt=""><figcaption></figcaption></figure></div>

After this release, `post-request` scripts can also be added to connector endpoints, which means they are applied automatically wherever the endpoint is used in process flows. We've also added the ability to apply `pre-request` scripts to endpoints.

We aren't changing the existing [response script functionality in connector settings](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/connector-shape/using-connector-shape-response-scripts.md) and **you don't have to make any changes to your setup**. However, if you currently use response scripts via connector shape settings, we do advise considering whether this is the best approach for your needs. Please see below for general guidance.

### Recommended use for post-request scripts

* If your response (i.e. `post-request`) script must *always* be applied when an endpoint is used, we recommend adding the script to the endpoint rather than connector shapes. This is a great time saver (no more having to remember to update connector shapes across your flows!) and makes ongoing maintenance easier. For more information please see our [post-request script](/product-documentation/developer-hub/connector-builder/building-your-own-connector/4-endpoints/endpoint-options/post-request-script.md) page.&#x20;
* If your response script is only needed when the endpoint is used in a specific process flow, it should be [added to relevant connector shapes in process flows](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/connector-shape/using-connector-shape-response-scripts.md) OR called from a [script shape](/product-documentation/process-flows/building-process-flows/process-flow-shapes/advanced-shapes/script-shape.md) after the connector step.

{% hint style="danger" %}
If a connector shape is configured for an endpoint associated with a `post-request` script AND a `response script` is applied in connector shape settings, **the connector shape takes precedence**. In this scenario, the `response script` applied in the connector shape is used and the `post-request` script applied to the endpoint is ignored.
{% endhint %}

### Recommended use for pre-request scripts

`Pre-request` scripts for endpoints are introduced in this release. When a `pre-request` script is added to an endpoint, it is applied every time that endpoint is called. With this in mind:

* If your `pre-request` script must *always* be applied when an endpoint is used, you can simply add the script to your existing endpoint. <br>

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Please see our <a href="/pages/mrWAdDoyuEtHr0zT4gIm">pre-request script</a> page for more information.</p></div>

* If your `pre-request` script is only needed when the endpoint is used in a specific process flow, you should:
  * Clone the existing endpoint
  * Edit the cloned endpoint - change the name as appropriate and add the `pre-request` script
  * Where needed, configure connector shapes to use the endpoint associated with your pre-request script. Otherwise, use the standard endpoint.<br>

    <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Please see <a href="/pages/O5VLnntW58pzgrWXbKc7">using a pre-request script in some process flows but not others</a> for more information.</p></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.wearepatchworks.com/product-documentation/release-information/core-release-notes/2025-03-05-release-notes-core.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
