Gatana logoGatana Docs
RoutesSkill collections

/skill-collections

Create a skill collection from a name, an optional one-line description and a general access

POST
/skill-collections
AuthorizationBearer <token>

In: header

Request Body

application/json

name*string

Name of the collection: lowercase letters, digits and single dashes, 1-64 characters, unique in the organization. What the CLI subscribes to

Match^[a-z0-9]+(-[a-z0-9]+)*$
Length1 <= length <= 64
description?string

One line saying what the collection gathers

Lengthlength <= 1024
visibility?string

'organization' (the default): every member can read the collection and its skills; 'private': the creator and the users and teams it is shared with

Value in"organization" | "private"

Response Body

application/json

curl -X POST "https://YOUR_ORG_ID.gatana.ai/api/v1/skill-collections" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "id": "string",
  "name": "string",
  "description": "string",
  "visibility": "organization",
  "createdByUserId": "string",
  "createdByUserName": "string",
  "createdByUserEmail": "string",
  "sharedWithUserIds": [
    "string"
  ],
  "sharedWithTeamIds": [
    "string"
  ],
  "maintainerUserIds": [
    "string"
  ],
  "maintainerTeamIds": [
    "string"
  ],
  "skillCount": 0,
  "createdAt": "string",
  "updatedAt": "string"
}