---
title: "Replace traffic modifier"
method: PUT
path: "/forecaster/modifiers/traffic/{trafficModifierId}"
tags: ["Traffic Modifiers"]
---

# Replace traffic modifier

`PUT /forecaster/modifiers/traffic/{trafficModifierId}`

## Request

- Base URL: `https://api.kevel.co/v1`
- URL: `https://api.kevel.co/v1/forecaster/modifiers/traffic/{trafficModifierId}`
- Auth: API key in header `X-Adzerk-ApiKey`

Replace the existing Forecast Traffic Modifier with the one received from this request.

## Request body

- union
  - 0 (unresolved $ref)
  - 1 (unresolved $ref)
  - 2 (unresolved $ref)

## Response `200`

Normal response, containing the updated JSON object with the traffic modifier, if it existed before.

- union
  - 0 (unresolved $ref)
  - 1 (unresolved $ref)
  - 2 (unresolved $ref)

## Other responses

- `400`: The entity in the body is invalid.
- `404`: The entity doesn't exist.

---

[API](https://skmtc.dev/kevel/apis/forecast-api.md) - [All operations](https://skmtc.dev/kevel/apis/forecast-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kevel/apis/forecast-api/revisions/f07c8784a32d?raw)
