---
title: "Create vault timelocks"
method: POST
path: "/markets/lending_vaults/timelock/create"
tags: ["lending_vaults"]
---

# Create vault timelocks

`POST /markets/lending_vaults/timelock/create`

Create one or more timelock updates for vault collateral, rates, allocation, caps, and settings changes.

## Headers

- `Idempotent-Key` string, nullable

## Request body

- InitLendingVaultTimelockTxnParams
  - `collateralUpdates` StrategyCollateralUpdates
    - `addCollateral` object
    - `removeCollateral` object
    - `updateAssetAllocation` CollateralAllocationUpdateArgs[]
      - `assetIdentifier` string, required
      - `maxAllocationPct` string, required
    - `updateCollateral` object
  - `editStrategyArgs` EditStrategySettingsArgs
    - `externalYieldSource` ExternalYieldSourceParams
      - `newExternalYieldSource` integer, required
    - `interestFee` integer, nullable
    - `liquidityBuffer` integer, nullable
    - `originationCap` integer, nullable
    - `originationFee` integer, nullable
    - `originationsEnabled` boolean, nullable
    - `principalFee` integer, nullable
  - `editVaultArgs` EditVaultArgs
    - `maxEarlyUnstakeFeeCbps` integer, required
  - `updatePrincipalCaps` PrincipalCapsUpdateArgs
    - `max1HrBorrowCap` string, required
    - `max1HrSupplyCap` string, required
    - `max1HrWithdrawCap` string, required
    - `max24HrBorrowCap` string, required
    - `max24HrSupplyCap` string, required
    - `max24HrWithdrawCap` string, required
    - `maxOutstandingBorrowCap` string, required
    - `maxOutstandingSupplyCap` string, required
  - `vaultAddress` string, required

## Response `200`

Serialized versioned transactions

- VersionedTransactionReturn[]
  - `message` string, required — serialized message
  - `signatures` VersionedTransactionSignature[], required — serialized signatures
    - `publicKey` string, required — serialized message
    - `signature` string, required — serialized signatures

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `409` — Idempotency-Key reused with a different request body
- `500` — Internal server error

---

[API](https://skmtc.dev/loopscale/apis/loopscale-api.md) · [All operations](https://skmtc.dev/loopscale/apis/loopscale-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/loopscale/loopscale-api/revisions/531f64dbe09c/schema)
