Restore a past version as a new revision
https://api.floconnector.com/v1/skills/{id}/versions/{version}/restore- Scope
skills.write- Rate limit
- the key's write budget, 60 a minute
The body and the whole file set of the chosen version are written back as a new version on top of the history: restoring version 3 over version 9 produces version 10, and nothing is removed from the history. Files added after the restored version are dropped from the skill. A managed library install answers 409 read_only.
Path parameters
The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it.
A version number, 1 and up.
Responses
200Success
skillobjectThe skill after the restore, at its new version.
ShowHide 14 fields
idstringThe skill's id.
tool_namestringThe tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>.
slugstringThe skill's slug, the last part of its tool name. Renaming the skill does not change it.
namestringThe display name.
descriptionstringWhen to use the skill. AI clients see it as the tool's description.
iconstringnullableThe emoji mark shown in the dashboard. Null for the default mark.
statusenumdraft = not visible to any AI client; active = published; archived = kept, but served to no one.
draftactivearchivedoriginenumHow the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value.
dashboardmcplibrarycollectionobjectThe collection the skill belongs to.
ShowHide 3 fields
idstringThe collection's id.
slugstringThe collection's slug, the middle part of the tool name of every skill in it.
namestringThe collection's display name.
libraryobjectnullableThe skill's link to the library entry it was installed from. Null for a skill that was not installed from the library.
ShowHide 11 fields
library_idstringThe library entry's id.
slugstringThe library entry's slug.
namestringThe library entry's name.
modeenummanaged = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes.
managedcopyread_onlybooleanTrue for a managed install: its content cannot be edited here until it is made editable.
installed_versionintegerThe library version this skill carries. 0 when it was installed from an entry that was not published yet.
current_versionintegerThe latest version the library has published.
library_statusenumThe entry's state in the library. retired = FloConnector no longer maintains it.
draftpublishedretiredinstalled_atstringnullableWhen the skill was installed from the library, ISO 8601.
detached_atstringnullableWhen a managed install was made editable, ISO 8601. Null if that never happened.
update_availablebooleanTrue for a copy that sits behind the library's latest published version. Always false for a managed install.
versionintegerThe skill's current version number, or the version being shown when a past one was asked for.
filesarray of objectThe skill's files, as paths.
ShowHide 3 fields of each item
folderenumThe folder the file sits in: references, scripts or assets.
referencesscriptsassetsnamestringThe file name, extension included.
pathstring<folder>/<name>: the path the body links to, and the one to send when changing the file.
created_atstringWhen the skill was created, ISO 8601.
updated_atstringWhen the skill last changed, ISO 8601.
400validation: a field failed validation; field names it.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
401unauthorized: no key, or an unknown, revoked or expired key.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
403insufficient_scope: the key lacks the route's scope, named in required. Or forbidden, or plan_limit when the plan does not include the API.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
404not_found: the thing is not in this workspace.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
429rate_limited: the key's per-minute budget is spent. Retry after Retry-After seconds.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra structure some errors carry, such as a refused record batch's per-record errors.
Errors lists every error code and what to do about it.