Switch a skill library on for the calling user.
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.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
libraryId*stringID of the skill library.
uuidThe library as it now applies for the calling user.
application/json- response
A skill library as returned by the listing.
id*stringuuidname*stringDisplay name of the library.
level*stringThe 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.
"system""integration""organization""shared""agent""user"activated*booleanWhether 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*integernumberOfFiles*integerFiles of the library itself and of all its skills.
sizeInBytes*integerSize 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?stringdate-timecurl -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"}