Skip to main content
POST
/
v2
/
strategies
/
{strategyId}
/
versions
curl --request POST \
  --url 'https://api.glider.fi/v2/strategies/01JWZEE2MF30KVRMRX53N88VA4/versions' \
  --header 'x-api-key: gldr_sk_your_api_key' \
  --header 'content-type: application/json' \
  --data '{
    "allocation": {
      "assets": [
        { "assetId": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "weight": "70" },
        { "assetId": "eip155:1/erc20:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "weight": "30" }
      ]
    },
    "changeLog": "Increased USDC weight from 60% to 70%"
  }'
{
  "success": true,
  "data": {
    "version": 4,
    "allocation": {
      "assets": [
        {
          "assetId": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
          "weight": "70"
        },
        {
          "assetId": "eip155:1/erc20:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "weight": "30"
        }
      ]
    },
    "changeLog": "Increased USDC weight from 60% to 70%",
    "isHead": true,
    "createdAt": "2026-04-29T12:00:00.000Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.glider.fi/llms.txt

Use this file to discover all available pages before exploring further.

Publishes a new allocation version. The new version becomes the strategy’s active version. Previous versions stay readable via GET /v2/strategies/{strategyId}/versions.
  • Auth: x-api-key header (required)
  • Required scope: strategies:write
Affects every enrolled portfolio. The new allocation is what every portfolio enrolled in this strategy will rebalance to on its next scheduled run. Pause portfolios via POST /v2/portfolios/{portfolioId}/stop first if you need a staged rollout. Don’t grant strategies:write to keys exposed to end-user surfaces.

Request body

  • allocation — required. Same validation as POST /v2/strategies: weights sum to 100, CAIP-19 asset IDs, ≤50 assets.
  • changeLog — optional, ≤500 chars. Free-form note shown in the version history.
Body is strict; unknown keys (including a client-supplied version) return 400. Version numbers are server-assigned.

Concurrent publishes

If two publishes for the same strategy arrive at the same time, each gets a distinct sequential version number and the last one becomes the active version. Serialize on your side if you need strict ordering.

Cross-tenant access

Returns 404 — strategies you don’t own are not exposed.
curl --request POST \
  --url 'https://api.glider.fi/v2/strategies/01JWZEE2MF30KVRMRX53N88VA4/versions' \
  --header 'x-api-key: gldr_sk_your_api_key' \
  --header 'content-type: application/json' \
  --data '{
    "allocation": {
      "assets": [
        { "assetId": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "weight": "70" },
        { "assetId": "eip155:1/erc20:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "weight": "30" }
      ]
    },
    "changeLog": "Increased USDC weight from 60% to 70%"
  }'
{
  "success": true,
  "data": {
    "version": 4,
    "allocation": {
      "assets": [
        {
          "assetId": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
          "weight": "70"
        },
        {
          "assetId": "eip155:1/erc20:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "weight": "30"
        }
      ]
    },
    "changeLog": "Increased USDC weight from 60% to 70%",
    "isHead": true,
    "createdAt": "2026-04-29T12:00:00.000Z"
  }
}