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

# Detach Ocean Rightsizing Rule

`POST /ocean/{oceanId}/rightSizing/rule/{ruleName}/detachment`

## Request

- Base URL: `https://api.spotinst.io`
- URL: `https://api.spotinst.io/ocean/{oceanId}/rightSizing/rule/{ruleName}/detachment`
- Auth: HTTP bearer

## 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

- 0 (unresolved $ref)

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/spot/apis/spot-by-flexera-api.md) - [All operations](https://skmtc.dev/spot/apis/spot-by-flexera-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spot/apis/spot-by-flexera-api/revisions/f7e206fa6474?raw)
