Project Local History API

The Project Local History API reads, restores, and clears temporary workbook versions created while a module is edited in OpenL Studio. It is separate from the committed project revisions stored in the design repository.

Read Local History

GET /rest/projects/{projectId}/local-history?module={moduleName}
  • projectId — the project id the API hands out. The project must be opened in the caller’s workspace.
  • module — optional module name. A missing or blank value selects the first module in the project descriptor.

The project and module are resolved from the request. The endpoint does not use the project or module selected in the HTTP session, so it can be called in a fresh session and cannot return another project’s history.

The response is ordered from the newest local version to the oldest. The revision baseline is last. The current field is present and true only for the workbook version currently being edited.

modifiedOn is the moment the version was kept at, in ISO 8601 and UTC. The revision baseline has no modifiedOn: no time names it. The client formats the moment for display.

[
  {
    "id": "1787821200000_current",
    "modifiedOn": "2026-08-27T09:00:00Z",
    "current": true
  },
  {
    "id": "Revision Version"
  }
]

An empty array means the module has no earlier local version to compare or restore.

Restore a Local Version

POST /rest/projects/{projectId}/local-history/restore?module={moduleName}
Content-Type: application/json

{
  "version": "Revision Version"
}

The request body version field is the id of a non-current entry returned by the read endpoint. The project and module are resolved from the request before the workbook is replaced. The caller must have write permission on the selected module. If that workbook is also open in the HTTP session, OpenL Studio reloads its compiled model. A different module open in the same session is left unchanged.

Compare Two Local Versions

POST /rest/projects/{projectId}/local-history/compare?module={moduleName}
Content-Type: application/json

{
  "first": "Revision Version",
  "second": "1787821200000_current"
}

The request body names two entries by the id that the read endpoint returns. The endpoint starts the comparison of the two workbooks and answers 202 Accepted with the identifier of the comparison:

{
  "id": "b1b0c2e0-0a3f-4e52-9f0a-7a1d7d6a0f11"
}
  • Progress — a client subscribes to /user/topic/compare/{id}/status over the /ws WebSocket.
  • Result — GET /rest/compare/{id} reads what the two versions hold, and DELETE /rest/compare/{id} releases the comparison.
  • One comparison — a session holds one comparison at a time, so starting another one releases this one.

Clear Project Local History

DELETE /rest/projects/{projectId}/local-history

The endpoint removes the local edit history of every module in the named project from the caller’s workspace. It does not affect another project or another user’s workspace. The project must be opened, and the caller must have write permission on it.

Administrators clear local history for every user and project from the System settings screen. That global operation is DELETE /rest/admin/local-history; it is separate from the project API.

Errors

  • 403 Forbidden — restore requires write permission on the selected module; clearing requires write permission on the project.
  • 404 Not Found — the project identifier, module name, or local history entry does not resolve.
  • 409 Conflict — the project is not opened in the caller’s workspace.