# record.toggle

Source: https://docs.lightair.app/developers/remote-api/record.toggle

> Starts recording when not recording, and stops it when recording.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Recording and clips. Script plugins need the `outputs.control` permission.

## Parameters

None.

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `active` | `boolean` | no | Whether it's recording now. |
| `path` | `string | null` | no | The file, when it stopped. |

## Events

- `record.state`
- `output.changed`

## Related

- [record.start](https://docs.lightair.app/developers/remote-api/record.start.md)
- [record.stop](https://docs.lightair.app/developers/remote-api/record.stop.md)
