---
title: "Upsert Sql Connection"
method: PUT
path: "/api/tools/sql-connections/{name}"
tags: ["tools"]
---

# Upsert Sql Connection

`PUT /api/tools/sql-connections/{name}`

## Path parameters

- `name` string, required

## Request body

- SqlConnectionUpsertRequest
  - `connection_url` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.net/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
