Import an Agent Skills bundle into a collection
https://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
The collection: its id or slug.
Body
The fields it takes:
zipstringrequiredAn Agent Skills bundle (.zip), base64 encoded.
applybooleanoptionalfalse (the default) previews: the report says what WOULD happen. true writes every skill in the bundle, as drafts.
Responses
200Success
appliedbooleanTrue when the skills were written. False for a preview.
layoutenumThe bundle layout found: plugin (skills under a skills/ folder), bare (skill folders with no skills/ folder above them) or empty (no SKILL.md anywhere).
pluginbareemptycreatedarray of objectThe skills created, or on a preview the ones that would be.
ShowHide 4 fields of each item
slugstringThe slug the skill gets, from its directory name.
namestringThe skill's name: the frontmatter name, or the directory name when there is none.
descriptionstringThe description from the frontmatter.
file_countintegerHow many files come with the skill, besides SKILL.md.
collisionsarray of objectSkills 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
slugstringThe slug that collided, or the directory name when no slug could be made from it.
namestringThe skill's name in the bundle.
reasonstringWhy it was left out.
skippedarray of objectEntries 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
pathstringThe entry's path inside the zip.
reasonstringWhy it was skipped.
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.