Knowledge bases
Knowledge bases
Update a knowledge base
PATCH
Renames a knowledge base or changes whether every member of the workspace may use it. With validate_only, the checks run and 204 answers, nothing changes.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
knowledge_base_id*stringThe knowledge base.
Format
uuidregion*RegionsRegion of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them
Value in
"besg""usnv"application/json- body
name?|New name
Default
nullis_shared_with_workspace?|true lets every member of the workspace use it
Default
nullvalidate_only?Validate OnlyRun every check of the write and answer 204 without writing: a refused write answers the error the write would
Default
falseOK
application/json- response
A knowledge base, which genies answer from
knowledge_base_id*Knowledge Base Idname*Nameresource_id*Resource Idregion*Regionis_shared_with_workspace*Is Shared With Workspacefolder_id*string|nullcreated_time*Created TimeFormat
date-timelast_modified_time*Last Modified TimeFormat
date-timecurl -X PATCH 'https://api.stacksync.com/v1/workspaces/0/knowledge-bases/497f6eca-6276-4993-bfeb-53cbbbba6f08?region=besg' \ -H 'Content-Type: application/json' \ -d '{ "name": "<name>"}'{ "knowledge_base_id": "<knowledge_base_id>", "name": "<name>", "resource_id": "<resource_id>", "region": "<region>", "is_shared_with_workspace": false, "folder_id": "<folder_id>", "created_time": "2027-01-15T09:00:00Z", "last_modified_time": "2027-01-15T09:00:00Z"}