> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add path to requests

> Add the supplied URI to the request path.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Prepends a fixed path to the start of every request the connection sends. Use this when all your requests share a common prefix, such as `/api/v1`, and you would rather set it once than repeat it on each request. The connection is careful not to add the prefix twice: if a request path already begins with it, the path is left as is. Any trailing slash on the prefix is ignored.

This documentation describes: [Schema](/schemas/http-client-plugin-configurator/add-path)

## Fields

<FormField property="uri" label="Uri" required diType="http-uri">
  The path prefix added to the front of each request path, for example `/api/v1`. Trailing slashes are ignored.
</FormField>

## Sample data

This plugin changes outgoing HTTP requests on a live connection rather than transforming integration data, so there is no before/after to show. The configuration below prepends `/api/v1` to every request, so a request for `/products` is sent to `/api/v1/products`.

| Field | Value     |
| ----- | --------- |
| Uri   | `/api/v1` |

```json Configuration theme={null}
{
  "prototype": "add-path",
  "parameters": {
    "uri": "/api/v1"
  }
}
```
