---
title: "Lock Generate"
method: POST
path: "/v1/strategies/lock/generate"
tags: ["sdk"]
---

# Lock Generate

`POST /v1/strategies/lock/generate`

## Request

- Base URL: `https://api.usekeel.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.usekeel.io/v1/strategies/lock/generate`
- Auth: none declared

Generate a component version lock from strategy source.

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Request body

- LockGenerateRequest
  - `source` string, required

## Response `200`

Successful Response

- LockGenerateResponse
  - `component_lock` object, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usekeel/apis/keel-api.md) · [All operations](https://skmtc.dev/usekeel/apis/keel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/usekeel/apis/keel-api/revisions/3191ca10b0ab?raw)
