Skip to main content
POST
/
browsers
/
{id}
/
fs
/
watch
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: 'My API Key',
});

const response = await client.browsers.fs.watch.start('id', { path: 'path' });

console.log(response.watch_id);
{
  "watch_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Browser session ID

Body

application/json
path
string
required

Directory to watch.

recursive
boolean
default:false

Whether to watch recursively.

Response

Watch started successfully

watch_id
string

Unique identifier for the directory watch

I