---
title: "Update current Snow Monkey config"
method: PUT
path: "/api/snowmonkey/config"
tags: ["snowmonkey"]
---

# Update current Snow Monkey config

`PUT /api/snowmonkey/config`

Update current Snow Monkey config

## Request body

- Group — An Otoroshi service group is just a group of service descriptor. It is useful to be able to define Api Keys for the whole group
  - `description` string — The descriptoin of the group
  - `id` string, required — The unique id of the group. Usually 64 random alpha numerical characters, but can be anything
  - `name` string, required — The name of the group

## Response `200`

Successful operation

- SnowMonkeyConfig — Configuration for the faults that can be injected in requests. The name Snow Monkey is an hommage to Netflix's Chaos Monkey 😉
  - `chaosConfig` ChaosConfig, required — Configuration for the faults that can be injected in requests
    - `badResponsesFaultConfig` BadResponsesFaultConfig — Config for bad requests injection fault
      - `ratio` number, double, required — The percentage of requests affected by this fault. Value should be between 0.0 and 1.0
      - `responses` BadResponse[], required — The possibles responses
        - `body` string, required — The body of the HTTP response
        - `headers` object, required — The HTTP headers of the response
        - `status` integer, required — The HTTP status for the response
    - `enabled` boolean, required — Whether or not this config is enabled
    - `largeRequestFaultConfig` LargeRequestFaultConfig — Config for large request injection fault
      - `additionalRequestSize` integer, required — The size added to the request body in bytes. Added payload will be spaces only.
      - `ratio` number, double, required — The percentage of requests affected by this fault. Value should be between 0.0 and 1.0
    - `largeResponseFaultConfig` LargeResponseFaultConfig — Config for large response injection fault
      - `additionalRequestSize` integer — The size added to the response body in bytes. Added payload will be spaces only.
      - `ratio` number, double, required — The percentage of requests affected by this fault. Value should be between 0.0 and 1.0
    - `latencyInjectionFaultConfig` LatencyInjectionFaultConfig — Config for large latency injection fault
      - `from` integer, required — The start range of latency added to the request
      - `ratio` number, double, required — The percentage of requests affected by this fault. Value should be between 0.0 and 1.0
      - `to` integer, required — The end range of latency added to the request
  - `dryRun` boolean, required — Whether or not outages will actualy impact requests
  - `enabled` boolean, required — Whether or not this config is enabled
  - `includeUserFacingDescriptors` boolean, required — Whether or not user facing apps. will be impacted by Snow Monkey
  - `outageDurationFrom` integer, required — Start of outage duration range
  - `outageDurationTo` integer, required — End of outage duration range
  - `outageStrategy` 'OneServicePerGroup' | 'AllServicesPerGroup', required
  - `startTime` string, time, required — Start time of Snow Monkey each day
  - `stopTime` string, time, required — Stop time of Snow Monkey each day
  - `targetGroups` string[], required — Groups impacted by Snow Monkey. If empty, all groups will be impacted
  - `timesPerDay` integer, required — Number of time per day each service will be outage

## Other responses

- `400` — Bad resource format. Take another look to the swagger, or open an issue :)
- `401` — You have to provide an Api Key. Api Key can be passed with 'Otoroshi-Client-Id' and 'Otoroshi-Client-Secret' headers, or use basic http authentication
- `404` — Resource not found or does not exist

---

[API](https://skmtc.net/maif/apis/otoroshi.md) · [All operations](https://skmtc.net/maif/apis/otoroshi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maif/otoroshi/versions/276881687271/schema)
