---
title: "Bind a strategy version to a plan from an effective time"
description: "POST /admin/v1/plans/{planId}/strategy-bindings — Bind a strategy version to a plan from an effective time"
---

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

# Bind a strategy version to a plan from an effective time

## Endpoint

```http
POST /admin/v1/plans/{planId}/strategy-bindings
```

Operation ID: `bindPlanStrategy`

## Authentication

Send a Nexus Management Key as `Authorization: Bearer <management-key>`. This credential is control-plane only.

## Idempotency

This operation does not declare an `Idempotency-Key` requirement in the accepted OpenAPI contract.

## Request

### Parameters

| Name     | Location | Required | Schema   | Description |
| -------- | -------- | -------- | -------- | ----------- |
| `planId` | path     | Yes      | `string` | —           |

### application/json body

Required: **Yes**

Type: `CreateStrategyBindingDto`

| Field           | Required | Type     | Description |
| --------------- | -------- | -------- | ----------- |
| `strategyId`    | Yes      | `string` | —           |
| `effectiveFrom` | Yes      | `string` | —           |

## Responses

| Status | Description | Content type     | Schema               |
| ------ | ----------- | ---------------- | -------------------- |
| `201`  | —           | application/json | `StrategyBindingDto` |

Only responses explicitly declared by the accepted Admin OpenAPI contract are shown. The current contract does not declare operation-specific error bodies; the SDK preserves any non-success status and body in [`AdminApiError`](/management-sdk/error-handling).

### `201` application/json schema

Type: `StrategyBindingDto`

| Field           | Required | Type                 | Description |
| --------------- | -------- | -------------------- | ----------- |
| `id`            | Yes      | `string`             | —           |
| `planId`        | Yes      | `string`             | —           |
| `strategyId`    | Yes      | `string`             | —           |
| `strategyType`  | Yes      | `string (QUOTA)`     | —           |
| `effectiveFrom` | Yes      | `string / date-time` | —           |
| `effectiveTo`   | No       | `string / date-time` | —           |

## Examples

### TypeScript Management SDK

`NexusAdminClient.bindPlanStrategy` uses `AdminOperationInput<"bindPlanStrategy">` and returns `Promise<AdminOperationOutput<"bindPlanStrategy">>`.

```ts
import { NexusAdminClient } from '@nexus/sdk-typescript';

const nexus = new NexusAdminClient({
  baseUrl: 'https://nexus.microvoid.io',
  managementKey: process.env.NEXUS_MANAGEMENT_KEY,
});

const result = await nexus.bindPlanStrategy({
  path: {
    planId: '533c4e1e-2823-4349-86b9-d6f1a869a2ca',
  },
  body: {
    strategyId: '533c4e1e-2823-4349-86b9-d6f1a869a2ca',
    effectiveFrom: 'string',
  },
});
```

### Fetch

```ts
const response = await fetch(
  'https://nexus.microvoid.io/admin/v1/plans/533c4e1e-2823-4349-86b9-d6f1a869a2ca/strategy-bindings',
  {
    method: 'POST',
    headers: {
      Authorization: `Bearer ${process.env.NEXUS_MANAGEMENT_KEY}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      strategyId: '533c4e1e-2823-4349-86b9-d6f1a869a2ca',
      effectiveFrom: 'string',
    }),
  },
);

if (!response.ok) throw new Error(`Nexus request failed: ${response.status}`);
```

### curl

```bash
curl --request POST \
  "https://nexus.microvoid.io/admin/v1/plans/533c4e1e-2823-4349-86b9-d6f1a869a2ca/strategy-bindings" \
  --header "Authorization: Bearer ${NEXUS_MANAGEMENT_KEY}" \
  --header "Content-Type: application/json" \
  --data "{\"strategyId\":\"533c4e1e-2823-4349-86b9-d6f1a869a2ca\",\"effectiveFrom\":\"string\"}"
```

## Related guide

- [Workspace plans](/docs/control-plans-and-quota/workspace-plans)
- [API Reference overview](/api-reference)

Source: https://nexus.microvoid.io/api-reference/admin/plans-and-strategies/bind-plan-strategy/index.mdx
