---
title: "Set the watch directory"
method: POST
path: "/v1/devboxes/{id}/lsp/set-watch-directory"
tags: ["utility"]
---

# Set the watch directory

`POST /v1/devboxes/{id}/lsp/set-watch-directory`

Set the watch directory for the language server to a new path and restart the server

## Path parameters

- `id` string, required

## Request body

- SetWatchDirectoryRequestBody
  - `path` string, required

## Response `200`

A message indicating that the watch directory has been set

- string

---

[API](https://skmtc.dev/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.dev/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runloopai/runloop-api/revisions/0cb966ca566f/schema)
