Dokumentation
ReferenzSkills

Switch a skill library on for the calling user.

PUT
/skill-libraries/{libraryId}/activation

Makes the library apply in every chat of the user behind the API key, from the next message on. Only libraries of the levels shared and user can be switched; every other level applies by itself. A user's own library is on from the start; a shared library is off until the user switches it on.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Path Parameters

libraryId*string

ID of the skill library.

Formatuuid

Response Body

The library as it now applies for the calling user.

application/json
  1. response

A skill library as returned by the listing.

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
curl -X PUT "https://example.com/skill-libraries/497f6eca-6276-4993-bfeb-53cbbbba6f08/activation"
{  "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"}