Rename a skill library or switch its type.
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.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
libraryId*stringID of the skill library.
uuidapplication/json- body
The properties of a skill library that can be changed. Omitted properties stay unchanged.
name?stringlength <= 255level?stringThe type switch between a library colleagues may switch on and one the organization prescribes.
"organization""shared"The changed skill library.
application/json- 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*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-timeskills*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*stringdate-timecreatedBy?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" }}