# update_license

Change a license's workspaces or dates, or end it by setting effectiveTo. The organization and type cannot be changed.
Returns the license id. Lavanda staff only.

<!-- INPUT_BLOCK_START -->

## Input

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The ID of the license to update. Use list_licenses to find it. |
| `workspaceScope` | `WorkspaceScope` | No | ALL_WORKSPACES covers every workspace in the organization. SELECTED_WORKSPACES covers only the workspaces in workspaceIds. - [WorkspaceScope](#workspacescope) |
| `workspaceIds` | `string[]` | No | The workspaces to cover, replacing the current list. Used with SELECTED_WORKSPACES. |
| `effectiveFrom` | `string` | No | The first day the license is in force (YYYY-MM-DD) |
| `effectiveTo` | `string \| null` | No | The last day the license is in force (YYYY-MM-DD). Send null to remove the end date; omit to leave it unchanged. To end a license, set this to its final day. |

### WorkspaceScope

| Value | Description |
| --- | --- |
| `ALL_WORKSPACES` | |
| `SELECTED_WORKSPACES` | |

<!-- INPUT_BLOCK_END -->

<!-- OUTPUT_BLOCK_START -->

## Output

| Field | Type | Description |
| --- | --- | --- |
| `content` | `ContentItem[]` | Array of content items returned by the tool - [ContentItem](#contentitem) |
| `isError` | `boolean` | Whether the tool execution resulted in an error |

### ContentItem

| Field | Type | Description |
| --- | --- | --- |
| `type` | `'text'` | Content type (currently only 'text' is supported) |
| `text` | `string` | The text content to display |

<!-- OUTPUT_BLOCK_END -->
