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

# Lock Upgrade

`POST /v1/strategies/lock/upgrade`

## 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/upgrade`
- Auth: none declared

Bump the requested pins (every drifting pin when ``components`` is
omitted) to latest and validate there — breaking or not. Persists
nothing: the "try it" step of the agent's upgrade (dollar-volume spec 02
§3), with the same semantics as ``strategy_components_upgrade``
(lock_upgrade.bump_pins, one owner). ``changes`` are the drift entries
of the requested pins; a breaking bump comes back ``valid: false`` with
the issues to recompose against.

## Headers

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

## Request body

- SrcSchemasSdkLockUpgradeRequest
  - `source` string, required
  - `component_lock` object, nullable
  - `components` string[], nullable

## Response `200`

Successful Response

- SrcSchemasSdkLockUpgradeResponse
  - `component_lock` object, required
  - `upgraded` string[]
  - `valid` boolean, nullable
  - `issues` object[]
  - `changes` object[]

## 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)
