---
jsApi: true
title: "[F] interpolatePath"

---
```ts
interpolatePath(pathTemplate, predefinedVariables): string
```

Interpolate a path template

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `pathTemplate` | `string` | Path template |
| `predefinedVariables` | `Record`<`string`, `undefined` \| `string`\> | Variables that can be used in the path template. |

## Returns

`string`
