# source.update

Source: https://docs.lightair.app/developers/remote-api/source.update

> Renames a source or changes its settings, everywhere it's shown.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Objects and sources. Script plugins need the `project.write` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `source` | `string` | yes | The source's id or name. |
| `name` | `string` | no | A new name. |
| `settings` | `object` | no | Settings, merged into its own key by key. |
| `replace` | `boolean` | no | Replace all its settings with `settings` instead of merging. |

## Errors

Not found (-32004) for an unknown source.

## Events

- `workspace.changed`

## From an AI agent

The MCP server's `source (action: update)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "source.update", "params": { "source": "Title", "settings": { "text": "Live now" } } }
```

Result:

```json
{}
```

## Related

- [source.get](https://docs.lightair.app/developers/remote-api/source.get.md)
- [object.update](https://docs.lightair.app/developers/remote-api/object.update.md)
