apply_changeset
Apply an atomic ordered semantic changeset to a LinkML workspace, validating edits against a base commit and returning a new commit ID. Supports create, delete, rename, and field operations.
Instructions
Apply an atomic ordered semantic changeset to a LinkML workspace. Requires base_commit; validates before and after edits; returns a new commit id. Supported operations include create/delete/rename class, slot, enum, prefix, import, file, plus set_field, unset_field, list_append, list_remove, list_replace, map_set, and map_remove.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | Ordered semantic operations to apply atomically. | |
| message | No | Optional git commit message. | |
| base_commit | Yes | Git commit id that the new commit should use as its parent. | |
| workspace_id | Yes | Workspace id returned by init_workspace. |