business_knowledge

Rename a library or replace its sources and repositories

Changed on

Send only the fields you want to change. source_ids replaces every source in the library. repos replaces this environment's repositories and leaves repositories that only another environment allows.

patch/api/projects/{project_id}/business_knowledge/libraries/{id}/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/business_knowledge/libraries/{id}/
  • Auth: HTTP bearer

Path parameters

idstring required
project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

namestring

New name. Omit to keep the current name.

source_idsstring[]

Replaces every source in this library. Omit to leave sources unchanged. An empty list removes them all.

reposstring[]

Replaces this environment's repositories in the library. Omit to leave them unchanged. Repositories only another environment allows stay.

Response

idstring uuid required

Library id.

namestring required

Library name. Unique in this project, ignoring case.

is_defaultboolean required

True for the library new learned sources join. There is at most one.

source_countinteger required

How many sources are in this library.

reposstring[] required

Selected repositories in this library that this environment is allowed to read.

Changes