Create a skill collection

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

The slug is derived from the name and never changes: it becomes the tool prefix skill_<slug>_ for every skill in the collection. A name whose slug is already used in the workspace is refused with a 409 conflict. A new collection reaches no AI client until it is attached to a profile.

Body

The fields it takes:

namestringrequired

What people call the collection. Its slug, and so the tool prefix skill_<slug>_, is derived from it and never changes.

Max length 80

descriptionstringnullableoptional

One line on what the collection holds.

Max length 500

iconstringnullableoptional

A single emoji mark for the collection card. Dashboard only.

Max length 16

Responses

201Created
collectionobject

The new collection.

ShowHide 11 fields
idstring

The collection's id.

slugstring

Derived from the name when the collection was created. It never changes.

namestring

The display name.

descriptionstringnullable

One line on what the collection holds. Null when none was given.

iconstringnullable

The emoji mark shown in the dashboard. Null for the default mark.

statusenum

active, or archived: an archived collection serves none of its skills to AI clients.

activearchived
tool_prefixstring

The start of the tool name of every skill in the collection: skill_<slug>_.

skill_countsobject

How many skills the collection holds, by status.

ShowHide 3 fields
draftinteger

Skills not published yet.

activeinteger

Published skills.

archivedinteger

Archived skills.

profilesarray of object

The profiles carrying this collection. Empty means its skills reach no AI client yet.

ShowHide 3 fields of each item
idstring

The profile's id.

namestring

The profile's name.

auto_receiveboolean

True when the profile is set to take up skills published in this collection later, without anyone picking them again.

created_atstring

When the collection was created, ISO 8601.

updated_atstring

When the collection's own details last changed, ISO 8601.

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.