---
title: "Update Ocean Rightsizing Rule"
method: PUT
path: "/ocean/{oceanId}/rightSizing/rule/{ruleName}"
tags: ["Ocean Automatic Rightsizing"]
---

# Update Ocean Rightsizing Rule

`PUT /ocean/{oceanId}/rightSizing/rule/{ruleName}`

## Parameters

- `#/paths/~1ocean~1%7BoceanId%7D~1rightSizing~1rule/get/parameters/0` — unresolved $ref
- `#/paths/~1ocean~1%7BoceanId%7D~1rightSizing~1rule~1%7BruleName%7D/get/parameters/1` — unresolved $ref
- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref

## Request body

- object — Determines the Ocean Rightsizing rule
  - `restartReplicas` 'MORE_THAN_ONE_REPLICA' | 'ALL_MANIFEST' | 'NO_RESTART' — Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
  - `excludePreliminaryRecommendations` boolean — Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
  - `recommendationApplicationIntervals` Items[], required — Determines the Ocean Rightsizing rule recommendation application intervals — unresolved $ref
  - `recommendationApplicationMinThreshold` RecommendationApplicationMinThreshold — unresolved $ref
  - `recommendationApplicationBoundaries` RecommendationApplicationBoundaries — unresolved $ref
  - `recommendationApplicationOverheadValues` RecommendationApplicationOverheadValues — unresolved $ref
  - `recommendationApplicationHPA` RecommendationApplicationHPA — unresolved $ref
  - `autoApplyDefinition` AutoApplyDefinition — unresolved $ref
  - `cpuPercentile` integer — vCPU percentile for calculating recommendations.
  - `memoryPercentile` integer — Memory percentile for calculating recommendations.
  - `downsideOnly` boolean — When set to 'true', only downscale recommendations will be applied.

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
