---
title: "Plans and Strategies"
description: "Generated TypeScript Management SDK methods for Plans and Strategies."
---

> Documentation Index
> Fetch the complete documentation index at: https://nexus.microvoid.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Plans and Strategies

These methods are generated from the Admin OpenAPI contract. They configure the control plane; they do not send model requests.

| Method                     | HTTP     | Path                                                       | Reference                                                                    |
| -------------------------- | -------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `bindPlanStrategy`         | `POST`   | `/admin/v1/plans/{planId}/strategy-bindings`               | [API](/api-reference/admin/plans-and-strategies/bind-plan-strategy)          |
| `closePlanStrategyBinding` | `DELETE` | `/admin/v1/plan-strategy-bindings/{bindingId}`             | [API](/api-reference/admin/plans-and-strategies/close-plan-strategy-binding) |
| `createPlan`               | `POST`   | `/admin/v1/workspaces/{workspaceId}/plans`                 | [API](/api-reference/admin/plans-and-strategies/create-plan)                 |
| `createQuotaStrategy`      | `POST`   | `/admin/v1/workspaces/{workspaceId}/plan-strategies/quota` | [API](/api-reference/admin/plans-and-strategies/create-quota-strategy)       |
| `getPlan`                  | `GET`    | `/admin/v1/plans/{planId}`                                 | [API](/api-reference/admin/plans-and-strategies/get-plan)                    |
| `getPlanStrategy`          | `GET`    | `/admin/v1/plan-strategies/{strategyId}`                   | [API](/api-reference/admin/plans-and-strategies/get-plan-strategy)           |
| `listPlans`                | `GET`    | `/admin/v1/workspaces/{workspaceId}/plans`                 | [API](/api-reference/admin/plans-and-strategies/list-plans)                  |
| `listPlanStrategies`       | `GET`    | `/admin/v1/workspaces/{workspaceId}/plan-strategies`       | [API](/api-reference/admin/plans-and-strategies/list-plan-strategies)        |
| `listPlanStrategyBindings` | `GET`    | `/admin/v1/plans/{planId}/strategy-bindings`               | [API](/api-reference/admin/plans-and-strategies/list-plan-strategy-bindings) |
| `publishPlan`              | `POST`   | `/admin/v1/plans/{planId}/publish`                         | [API](/api-reference/admin/plans-and-strategies/publish-plan)                |
| `publishPlanStrategy`      | `POST`   | `/admin/v1/plan-strategies/{strategyId}/publish`           | [API](/api-reference/admin/plans-and-strategies/publish-plan-strategy)       |
| `updatePlan`               | `PATCH`  | `/admin/v1/plans/{planId}`                                 | [API](/api-reference/admin/plans-and-strategies/update-plan)                 |

## Method signatures

### `bindPlanStrategy`

```ts
nexus.bindPlanStrategy(
  input: AdminOperationInput<"bindPlanStrategy">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"bindPlanStrategy">>
```

Bind a strategy version to a plan from an effective time

### `closePlanStrategyBinding`

```ts
nexus.closePlanStrategyBinding(
  input: AdminOperationInput<"closePlanStrategyBinding">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"closePlanStrategyBinding">>
```

Close a strategy binding at the requested effective time

### `createPlan`

```ts
nexus.createPlan(
  input: AdminOperationInput<"createPlan">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"createPlan">>
```

Create a workspace plan

### `createQuotaStrategy`

```ts
nexus.createQuotaStrategy(
  input: AdminOperationInput<"createQuotaStrategy">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"createQuotaStrategy">>
```

Create a versioned quota strategy

### `getPlan`

```ts
nexus.getPlan(
  input: AdminOperationInput<"getPlan">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"getPlan">>
```

Get a workspace plan and active strategy bindings

### `getPlanStrategy`

```ts
nexus.getPlanStrategy(
  input: AdminOperationInput<"getPlanStrategy">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"getPlanStrategy">>
```

Get a strategy version

### `listPlans`

```ts
nexus.listPlans(
  input: AdminOperationInput<"listPlans">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"listPlans">>
```

List workspace plans

### `listPlanStrategies`

```ts
nexus.listPlanStrategies(
  input: AdminOperationInput<"listPlanStrategies">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"listPlanStrategies">>
```

List plan strategies owned by a workspace

### `listPlanStrategyBindings`

```ts
nexus.listPlanStrategyBindings(
  input: AdminOperationInput<"listPlanStrategyBindings">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"listPlanStrategyBindings">>
```

List current and historical strategy bindings

### `publishPlan`

```ts
nexus.publishPlan(
  input: AdminOperationInput<"publishPlan">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"publishPlan">>
```

Publish a plan after strategy validation

### `publishPlanStrategy`

```ts
nexus.publishPlanStrategy(
  input: AdminOperationInput<"publishPlanStrategy">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"publishPlanStrategy">>
```

Publish an immutable strategy version

### `updatePlan`

```ts
nexus.updatePlan(
  input: AdminOperationInput<"updatePlan">,
  options?: AdminRequestOptions,
): Promise<AdminOperationOutput<"updatePlan">>
```

Update a draft workspace plan

Source: https://nexus.microvoid.io/management-sdk/reference/plans-and-strategies/index.mdx
