---
title: "Update Source"
method: POST
path: "/v1/strategies/update-source"
tags: ["sdk"]
---

# Update Source

`POST /v1/strategies/update-source`

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

Validate source, generate component lock, and return graph.

Compound operation: validate + lock + graph in one call.

## Headers

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

## Request body

- UpdateSourceRequest
  - `source` string, required
  - `name` string, nullable

## Response `200`

Successful Response

- UpdateSourceResponse
  - `valid` boolean, required
  - `graph` object, nullable
  - `component_lock` object, nullable
  - `errors` string[]

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