---
title: "Enable or disable a script connection"
method: POST
path: "/api/script-connections/{id}/disable"
tags: ["Script Connections"]
---

# Enable or disable a script connection

`POST /api/script-connections/{id}/disable`

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `enabled` boolean, required

## Response `200`

Updated script connection

## Other responses

- `403` — Only the lead agent can manage script connections
- `404` — Script connection not found

## Changes

- **2026-07-09** `4f56890cc278` — 1 info
  - endpoint added
- **2026-07-02** `0c910612f9ac` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/script-connections/:id/disable/post.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
