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

---
```ts
setRouteProducer(
  program,
  operation,
  routeProducer): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `operation` | `Operation` |
| `routeProducer` | [`RouteProducer`](Type.RouteProducer.md) |

## Returns

`void`
