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

Response

201
application/json

Watch started successfully

The response is of type object.