---
title: "Enable or disable a Samba share"
method: PUT
path: "/samba/shares/{id}/enabled"
tags: ["Samba"]
---

# Enable or disable a Samba share

`PUT /samba/shares/{id}/enabled`

Set whether a Samba share is included in the active configuration

## Path parameters

- `id` integer, required

## Request body

- InternalHandlersSambaSetSambaShareEnabledRequest
  - `enabled` boolean

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseAny
  - `data` unknown
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/7a7bea85004e/schema)
