Import an Agent Skills bundle into a collection

POSThttps://api.floconnector.com/v1/skills/collections/{id}/import
Scope
skills.write
Rate limit
the key's write budget, 60 a minute

Send the zip base64 encoded in zip. Without apply: true nothing is written: the report lists what would be created, what collides and what was skipped, from the same checks a real run makes. Imported skills land as drafts, and a skill whose name is already in the collection is skipped, never overwritten. Send the same zip again with apply: true to write.

Path parameters

stringrequired

The collection: its id or slug.

Body

The fields it takes:

zipstringrequired

An Agent Skills bundle (.zip), base64 encoded.

applybooleanoptional

false (the default) previews: the report says what WOULD happen. true writes every skill in the bundle, as drafts.

Responses

200Success
appliedboolean

True when the skills were written. False for a preview.

layoutenum

The bundle layout found: plugin (skills under a skills/ folder), bare (skill folders with no skills/ folder above them) or empty (no SKILL.md anywhere).

pluginbareempty
createdarray of object

The skills created, or on a preview the ones that would be.

ShowHide 4 fields of each item
slugstring

The slug the skill gets, from its directory name.

namestring

The skill's name: the frontmatter name, or the directory name when there is none.

descriptionstring

The description from the frontmatter.

file_countinteger

How many files come with the skill, besides SKILL.md.

collisionsarray of object

Skills in the bundle that were left out: the collection already has one with that name, the bundle holds it twice, or its name cannot make a slug.

ShowHide 3 fields of each item
slugstring

The slug that collided, or the directory name when no slug could be made from it.

namestring

The skill's name in the bundle.

reasonstring

Why it was left out.

skippedarray of object

Entries in the zip that were not imported, such as a SKILL.md with no description, a binary file, a file over the size limit or a file outside the three folders.

ShowHide 2 fields of each item
pathstring

The entry's path inside the zip.

reasonstring

Why it was skipped.

400validation: a field failed validation; field names it.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra 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.