Dokumentation
ReferenzSkills

Rename a skill library or switch its type.

PATCH
/skill-libraries/{libraryId}

Changes the name, the level, or both. Omitted properties stay unchanged.

Renaming requires skill.edit on the library, which the creator of a shared library always holds. Switching the level between shared and organization is the type switch and requires the right to create organization libraries, which only a tenant manager holds. No other level can be reached this way: the libraries of the platform, of an integration, of an assistant and the user's own follow their owner.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Path Parameters

libraryId*string

ID of the skill library.

Formatuuid

Request Body

application/json
  1. body

The properties of a skill library that can be changed. Omitted properties stay unchanged.

name?string
Lengthlength <= 255
level?string

The type switch between a library colleagues may switch on and one the organization prescribes.

Value in"organization""shared"

Response Body

The changed skill library.

application/json
  1. response

One skill library with the names and descriptions of its skills and the paths of its files. Instruction texts are delivered by the export only.

id*string
Formatuuid
name*string

Display name of the library.

level*string

The level the library and all its skills belong to: system ships with the platform, integration comes with an integration the tenant uses, organization is prescribed by the tenant, shared is offered by a colleague, agent belongs to an assistant, user is the calling user's own.

Value in"system""integration""organization""shared""agent""user"
activated*boolean

Whether the library applies in the chats of the calling user right now. Switchable for shared and user; true and read-only on every other level.

numberOfSkills*integer
numberOfFiles*integer

Files of the library itself and of all its skills.

sizeInBytes*integer

Size of the library with all its skills and their files.

userPermissions*array<>

What the calling user may do with this library: skill.view read its skills and files, skill.edit change its skills and rename it (through a new import, in this API), skill.delete delete it, skill.manage share it with groups, skill.code_manage bring scripts under scripts/. The platform's libraries show their content to administrators only, so a row can come without skill.view.

lastModifiedAt?string
Formatdate-time
skills*array<>

The skills of this library; empty for the levels system and integration.

files*array<>

The files of the library level, reachable from every skill with ../.

createdAt*string
Formatdate-time
createdBy?
curl -X PATCH "https://example.com/skill-libraries/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "Vertriebsregeln",  "level": "system",  "activated": true,  "numberOfSkills": 0,  "numberOfFiles": 0,  "sizeInBytes": 0,  "userPermissions": [    "skill.view"  ],  "lastModifiedAt": "2019-08-24T14:15:22Z",  "skills": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "angebot-standard",      "description": "string",      "lastModifiedAt": "2019-08-24T14:15:22Z"    }  ],  "files": [    {      "path": "references/preisliste-2026.md",      "sizeInBytes": 0,      "contentType": "string"    }  ],  "createdAt": "2019-08-24T14:15:22Z",  "createdBy": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string"  }}