# Specifying a non-root folder as the file location (services)

## Introduction

By default, the root of the URL/host defined for the SFTP connector is assumed as the working folder for files.&#x20;

If required, you can specify an alternative folder for any services using this connector. To do this, follow the steps below.

## The steps

**Step 1**\
[Add your service in the usual way](/product-documentation/patchworks-services/working-with-services/adding-a-patchworks-service.md) and select the required entity to be synced. At this point, **source details** are shown.

**Step 2**\
Click the **use JSON editor** button to access the advanced editor - for example:&#x20;

<figure><img src="/files/MGVB0cEHhaqaWGIvumYZ" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Access to the advanced editor is restricted. If you don't see this option but require access, please contact Patchworks support.&#x20;
{% endhint %}

**Step 3**\
Add the following line:

{% code lineNumbers="true" %}

```json
"remote_path":"xyz/",
```

{% endcode %}

...where **xyz** is the required folder name.

**Step 4**\
Complete the service setup in the normal way.


---

# 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/patchworks-services/service-systems/supported-service-systems/patchworks-sftp-service-connector/specifying-a-non-root-folder-as-the-file-location-services.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.
