---
title: "Update delay distribution"
method: PUT
path: "/v1/mock-apis/{mockApiId}/settings/delayDistribution"
tags: ["Settings"]
---

# Update delay distribution

`PUT /v1/mock-apis/{mockApiId}/settings/delayDistribution`

## Request body

- object
  - `delayDistribution` union, required — The delay distribution. Determines how response delays are distributed across requests.
    - object — Log normally distributed random response delay.
      - `median` number, required — 50th percentile of the distribution in milliseconds.
      - `sigma` number, required — Standard deviation of the underlying normal distribution. A larger value produces a longer tail.
      - `maxValue` number — Maximum value in milliseconds to truncate the distribution at. Must be greater than or equal to median. Omit to disable truncation.
      - `type` 'lognormal'
    - object — Uniformly distributed random response delay.
      - `lower` integer, required — Lower bound of the delay range in milliseconds (inclusive).
      - `upper` integer, required — Upper bound of the delay range in milliseconds (inclusive).
      - `type` 'uniform'
    - object — Fixed response delay.
      - `milliseconds` integer, required — Fixed delay duration in milliseconds.
      - `type` 'fixed'
    - object — No delay distribution. Clears any previously configured distribution.
      - `type` 'none', required

## Response `200`

Settings successfully updated

- object
  - `delayDistribution` union — The delay distribution. Determines how response delays are distributed across requests.
    - object — Log normally distributed random response delay.
      - `median` number, required — 50th percentile of the distribution in milliseconds.
      - `sigma` number, required — Standard deviation of the underlying normal distribution. A larger value produces a longer tail.
      - `maxValue` number — Maximum value in milliseconds to truncate the distribution at. Must be greater than or equal to median. Omit to disable truncation.
      - `type` 'lognormal'
    - object — Uniformly distributed random response delay.
      - `lower` integer, required — Lower bound of the delay range in milliseconds (inclusive).
      - `upper` integer, required — Upper bound of the delay range in milliseconds (inclusive).
      - `type` 'uniform'
    - object — Fixed response delay.
      - `milliseconds` integer, required — Fixed delay duration in milliseconds.
      - `type` 'fixed'
    - object — No delay distribution. Clears any previously configured distribution.
      - `type` 'none', required

## Other responses

- `401` — 401 Unauthenticated response
- `403` — 403 Unauthorized response

---

[API](https://skmtc.net/wiremock/apis/wiremock-cloud.md) · [All operations](https://skmtc.net/wiremock/apis/wiremock-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wiremock/wiremock-cloud/revisions/93bebefc672f/schema)
