---
title: "Update plan configuration of namespace in cluster"
method: PATCH
path: "/clusters/{clusterId}/namespaces/{namespaceId}/plans/{planId}"
tags: ["clusters"]
---

# Update plan configuration of namespace in cluster

`PATCH /clusters/{clusterId}/namespaces/{namespaceId}/plans/{planId}`

## Request

- Base URL: `https://pmp-demo.privateplatform.mendix.com/clusterservice/v1`
- URL: `https://pmp-demo.privateplatform.mendix.com/clusterservice/v1/clusters/{clusterId}/namespaces/{namespaceId}/plans/{planId}`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Update plan configuration of the namespace in the cluster

## Path parameters

- `clusterId` string, required
- `namespaceId` string, required
- `planId` string, required

## Request body

- PlanRequest
  - `planName` string
  - `planType` 'Database' | 'Storage' | 'CustomCoreResource': Plan type, CustomCoreResource is applicable only for Connected mode cluster.
  - `isActive` 'Yes' | 'No': Indicate if the plan is active, applicable only for Connected mode cluster.
  - `cpuRequest` number: Cpu cores request should not be lower than 0.1 CPU
  - `cpuLimit` number: Cpu cores limit should not be lower than 0.1 CPU
  - `memoryRequest` number: Memory request should not be lower than 0.512 GB
  - `memoryLimit` number: Memory limit should not be lower than 0.512 GB
  - `ephemeralRequest` number: Ephemeral Storage request should not be lower than 1 GB
  - `ephemeralLimit` number: Ephemeral storage limit should not be lower than 1 GB

## Response `200`

Plan information

- Plan
  - `planId` string
  - `planName` string
  - `planType` 'Database' | 'Storage' | 'CustomCoreResource': Plan type, CustomCoreResource is applicable only for Connected mode cluster.
  - `isActive` 'Yes' | 'No': Indicate if the plan is active, applicable only for Connected mode cluster.
  - `cpuRequest` number: Cpu cores request should not be lower than 0.1 CPU
  - `cpuLimit` number: Cpu cores limit should not be lower than 0.1 CPU
  - `memoryRequest` number: Memory request should not be lower than 0.512 GB
  - `memoryLimit` number: Memory limit should not be lower than 0.512 GB
  - `ephemeralRequest` number: Ephemeral Storage request should not be lower than 1 GB
  - `ephemeralLimit` number: Ephemeral storage limit should not be lower than 1 GB

## Other responses

- `400`: Invalid input parameter or request body
- `401`: Authentication information is missing or invalid
- `403`: User has no permission for this operation
- `404`: Resource not found

---

[API](https://skmtc.dev/mendix/apis/cluster-service-v1.md) - [All operations](https://skmtc.dev/mendix/apis/cluster-service-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/mendix/apis/cluster-service-v1/revisions/ce8d4c9c1a02?raw)
