Skip to content

List an app's versions

GET
/api/v1/artifacts/app/{name}/history
curl --request GET \
--url http://localhost:11044/api/v1/artifacts/app/example/history \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'

The commits in the world’s git repository that changed one of the workspace app’s files, newest first. Every save, copy, chat build, write, delete and restore of an app is committed there.

name
required
string

The app’s file name in the workspace, e.g. dashboard.html

The app’s versions

Media type*/*

An app’s versions, newest first

object
name
required

The app’s name

string
uncommitted
required

True when the app on disk differs from its newest version — edited by hand, or written before history began. The next write keeps it first

boolean
versions
required

Newest first, at most fifty. Empty for an app never written since history began

Array<object>

One earlier version of an app: a commit in the world’s git repository that changed its files

object
at
required

When the commit was made, ISO-8601

string
commit
required

The commit’s full id, which a restore names

string
message
required

The commit’s message: what wrote the app — a save, a copy, a chat build, a restore

string
present
required

False where this commit deleted the app; such a version cannot be restored

boolean

Not an app name

Media type*/*

A refusal carrying only its reason

object
error
required

Why the request was refused, written to be shown

string

This world keeps no history: it is not a git repository, or git could not read it

Media type*/*

A refusal carrying only its reason

object
error
required

Why the request was refused, written to be shown

string